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
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to