Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Re: ftp directories

by mbond (Beadle)
on Sep 14, 2001 at 20:29 UTC ( [id://112456]=note: print w/replies, xml ) Need Help??


in reply to Re: ftp directories
in thread ftp directories

I thought of that, but haven't been able to find a way to run it over the ftp connection.

if i run it locally (@list = stat(FILEHANDLE);)its gonna give me an error because the file is on the remort server. i would have to run it like @list = stat($ftp->get($filename)); .. but that would cause me to retrieve the file, not what i am looking for.

According the the Net:FTP docs Stat is the FTP stat command, which returns the server status, not of a specific file. (and its not implimented yet from what i can tell)

Mbond

Replies are listed 'Best First'.
Re: Re: Re: ftp directories
by earthboundmisfit (Chaplain) on Sep 14, 2001 at 20:36 UTC
    >its gonna give me an error because the file is on the remort server.

    Yes, I realized that too late. Could you try a telnet session to each box instead of FTP?

    update: Assuming that's not feasible, you could do $ftp->cwd($path,$filename) If that succeeds, delete it.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (2)
As of 2024-04-18 23:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found