Asked By
anonymous
7060 points
N/A
Posted on - 01/26/2013
I’m looking for a sample code that will allow calling of connect:direct command. It should be able to do so from within the shell. Do you have any suggestions ? Help me out please.
Looking for sample command for calling connect direct in Unix
Hello,
He is a code with comments for a process that performs 2 tasks: First, the process copies a file from Unix to Windows and secondly, the process will delete a file called deleteme.txt. Â
/*** This is an example where a process copies a file from Unix to Windows.
    Then a run task get executed to delete a Windows file  ***/
test2 process snode=Windows
//Copy the file from Unix
step1 copy from (file=/home/user/testunix pnode)
//to the c: in windows
to (file=c:temptestfile.txt disp=rpl snode)
// start if the condition is true
step2 if (step1 < 4) then
run task snode (pgm=windowsNT/95)
//Now delete the file deletem.txt
sysopts="cmd(del c:tempdeleteme.txt)"
// end of if statement.
eif
//End of Execution
pend;
Â
Â
I hope this is useful to you. Â Good luck.