Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: run the find command in perl script from window server

by thomas895 (Hermit)
on Oct 15, 2012 at 05:11 UTC ( #999009=note: print w/ replies, xml ) Need Help??


in reply to run the find command in perl script from window server

That won't work, at least, not in the way you have it now. To run a command on one machine from another, you must use something like SSH or Telnet.
But if I'm understanding your intention correctly, you want to search your Windows flesystem using a Unix machine. Unfortunately, it's not that simple, unless you have already mounted your Windows drive using Samba(or something like that).

Instead, consider using File::Find, and then unlinking the file you want to remove.

HTH

~Thomas~
confess( "I offer no guarantees on my code." );


Comment on Re: run the find command in perl script from window server
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://999009]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (8)
As of 2015-07-04 14:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls