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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with FTP script

Status
Not open for further replies.

EdRev

Programmer
Aug 29, 2000
510
US
I have posted a similar thread in another forum and did not realize that that was the wrong forum until I see this forum. I apologize if i sound redundant.
I am new to the UNIX programming and I need some help with this.
Our UNIX administrator set up an FTP proc for me to use
to send file from UNIX to the mainframe. I invoked this as follows:

/home/some_directory/ftp.proc some_target_system some_ftp_script ftp_id.

I code a some_ftp_script as follows:

ascii
hash
prompt
site cyl pri=100 sec=50 vol=PRD421 recfm=FB
put /some_UNIX_dir/file1.txt 'target.system.dsn.name1'
put /some_UNIX_dir/file2.txt 'target.system.dsn.name1'
put /some_UNIX_dir/file3.txt 'target.system.dsn.name1'

bye

This does not give me any flexibility at all as I need to ftp alot of files at different times.

Can somebody tell me what this line do:

/home/some/directory/ftp.proc some_target_system some_ftp_script ftp_id.


What I would want to do is to write a script that will evaluate if file1 exist and then FTP it if it does, then evaluate file2 and so on.
Can I do this without invoking the script provided by our UNIX Administrator.
 
Just post the contents of /home/some/directory/ftp.proc if you want some explaination on how it works.
 
Unfortunately, I do not have access to the file. I was assuming that this script takes the parameters some_target_system and some_ftp_script. Can I create my own ftp script?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top