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.
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.