Looking for sample command for calling connect direct in Unix

Asked By 7060 points N/A Posted on -
qa-featured

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.

SHARE
Answered By 0 points N/A #196204

Looking for sample command for calling connect direct in Unix

qa-featured

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.

Login/Register to Answer

Related Questions