barathbr has asked for the wisdom of the Perl Monks concerning the following question:
Folks,
I am just in the process of writing a little script to back up specific files from multiple servers on my network. The problem is that some of the files dont have standard extensions. (e.g) I could have a binary with no extension or a cap file named as .txt.
My question is, is there a module which gives output similar to the `file` command ?? I am on windows with A perl 5.8
pl. note I have hunted on cpan for modules, but just wanted to make sure I am using a standar module which people know works
Also, is there a simple way to access windows shares from within a script. I am currently just mapping a drive to the $ share within windows and hardcoding the path. That just increases my login time like crazy.
Thanks,
Barath
I am just in the process of writing a little script to back up specific files from multiple servers on my network. The problem is that some of the files dont have standard extensions. (e.g) I could have a binary with no extension or a cap file named as .txt.
My question is, is there a module which gives output similar to the `file` command ?? I am on windows with A perl 5.8
pl. note I have hunted on cpan for modules, but just wanted to make sure I am using a standar module which people know works
Also, is there a simple way to access windows shares from within a script. I am currently just mapping a drive to the $ share within windows and hardcoding the path. That just increases my login time like crazy.
Thanks,
Barath
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: tree backup script - file type problem
by BrowserUk (Patriarch) on Sep 07, 2004 at 23:08 UTC | |
Re: tree backup script - file type problem
by tachyon (Chancellor) on Sep 07, 2004 at 23:36 UTC | |
Re: tree backup script - file type problem
by davido (Cardinal) on Sep 07, 2004 at 23:44 UTC | |
by barathbr (Scribe) on Sep 09, 2004 at 21:05 UTC | |
Re: tree backup script - file type problem
by chromatic (Archbishop) on Sep 07, 2004 at 23:35 UTC | |
Re: tree backup script - file type problem
by ikegami (Patriarch) on Sep 07, 2004 at 23:22 UTC | |
by barathbr (Scribe) on Sep 07, 2004 at 23:34 UTC |
Back to
Seekers of Perl Wisdom