Hi,
I am having unix script that passes argument value to script. The script finds the file and keeps it in a directory.
I need to ftp this file to another server. Please guide me how to acieve this.
I am able to connect to ftp server but i am not able to use the unix argument in the ftp script as it is already ftp'ed in to another server.
Eg: Put /data/$1.bcp /data/bin/$1.bcp
it says that $1.bcp is not found as we cant use $1 once it is ftp'ed.
Steps that i am following in the Unix script:
- ./unloadtable.bld order
This unloadtable.bld takes orders as a argument and searches that orders file and attaches .bcp to that orders. So it becomes orders.bcp.
- We need to pass this orders.bcp to ftp.
I am calling another script in unloadtable.bld to ftp this file.
- This subscript again calls another scripts that passes orders.bcp to that server.
I am having problem in the third step. Please help me out.
Thanks
Suresh