omegaweaponZ has asked for the wisdom of the Perl Monks concerning the following question:
So this grabs it correctly from the remote server on /log/filename.file but when transferred, it goes to the root / instead of where I want it to go, which is /var/log. How can I specify where to place the new file I am ftping?$dir = "/log"; $ftp->cwd($dir) or die "Can't cwd to $dir\n"; $get = "filename.file from remote server" $ftp->get($get) or die "Can't get $get \n";
UPDATE: Disregard, you can specify remote file location within the get command: ftp->get($get,/path/to/local);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net FTP question
by runrig (Abbot) on May 24, 2013 at 17:43 UTC |