Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FTP through Progress Code

Status
Not open for further replies.

2much2learn

Programmer
May 31, 2006
2
US
I am trying to FTP a file using Progress code to a Windows server. I am running Progress on a Linux server. If the answer is to use shell scripting, how do I call that from Progress? I am obviously very new at Progress programming.
 
2much2learn,
take a look at the 'os-command' or 'unix' statement. then you will just need to put the actual commands in.
for example:
Code:
os-command silent value("lp -dfx2180 -onb -s -p7 /caras/CASSEQ_ERR.RCC").
will print CASSEQ_ERR.RCC on the fx2180 printer
or
Code:
os-command silent value("cp /caras/CASSEQ_DTL.RCC1 /caras/CASSEQ_DTL.RCC").
will copy CASSEQ_DTL.RCC1 file on an HPUX system.
regards,
longhair
 
2much2learn,
just thought of something. in you can shell script it then you can just use the 'os-command' statement to call your script rather than putting all of the individual commands in your progress program preceded by the 'os-command' statement. probably easier this way.
regards,
longhair
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top