...
Keep in mind that both the batch file and the file created by the redirected output reside on the remote system.
Panel |
---|
1 set echo=no 2 set outdir=C:\tmp\joe 3 open r=dallas user=joe pwd=abcdefg 4 exec r cmd="C:\wrk\xmp\win\winxmp.bat $(outdir)\stdout.txt" user=joe pwd=abcdefg 5 cd r=$(outdir) 6 cd local=C:\tmp\tmp 7 attrib local createop=replace 8 copy r=stdout.txt 9 exec local cmd="type C:\tmp\tmp\stdout.txt" user=joe pwd=abcdefg 10 quit |
Due to the complexity of this example, each line (numbered for your convenience) is explained, below.
...
Anchor | ||||
---|---|---|---|---|
|
Panel |
---|
echo %1 dir "C:\wrk\xmp\win" > %1 |
Anchor | ||||
---|---|---|---|---|
|
...
UDM exec Command Parameters
The exec command parameters used in this example are:
Parameter | Description |
---|---|
cmd | Command to execute on the remote system using command type cmd (command). |
user | Remote user ID with which to authenticate and execute the command on the remote system. |
pwd | Password with which to authenticate the user ID on the remote system. |