I am Run Perl CGI Script. In which i am running SCP Command. But I want that command to be run into background and exit the script. But Still Web page waiting for Finish the script. I m doing like :
system ("scp -r machinename:/path/to/file/for/copy/ /path/for/destination/directory/ &");
But it is not working fine. Still it is waiting for Finish the script. Please help me out.
And Also Tell me how to get output of SCP on webpage using Perl CGI: I am doing like this:
system ("scp -r machinename:/path/to/file/for/copy/ /path/for/ destination/directory/ 2>&1 &");