dear monks.
I am trying to fetch a big file from a server to another server. I log to my server using ssh.. and I trying to create a script that forks to download, so I can exit my ssh without loosing the download.
the code is still waiting for the download. I am not very good with forking, what I want is to be able to run this script, have a forked process download, and safely close my ssh login.
here's what I came up with but it obviously is not working
#!/usr/bin/perl
use LWP::Simple;
if (fork) {
getstore('ftp://someserver/big640Mbfile', '/myfolder/file');
}
should I better place a crontab to start the file?