From: Yohan G. <y_g...@ya...> - 2013-01-23 06:45:20
|
Hi All, I am running following staf command in perl program. It copies files on remote host from one location to other directory location as below. ############# 1 my $cmdremote200 = "\"staf\" \"machine1567\" \"process\" \"start\" \"wait\" \"shell\" \"command\" \"robocopy\" \"/S\" \"c:temp\logs\" \"c:\results\" \"MIR\" "; 2 system($cmdremote200); 3 print "Command executed\n $cmdremote200 \n"; ############## In line 2 command is executed on remote host "machine1567" and stays there until, it is completed but I want this to happen in background on remote host. And return to execute line 3 immediately after starting robocopy command on remote host. Tried using system 1, "$cmdremote200"; but doesn't work as there are many arguments in "$cmdremote200" variable. If any of you know any solution to the above problem please respond to this thread. Thanks in advance, Yohan |