![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to write current Date dynamically in a file | Sree_2503 | Shell Programming and Scripting | 5 | 10-17-2006 02:19 PM |
| copy files dynamically from within a file | chiru_h | Shell Programming and Scripting | 1 | 08-21-2006 03:24 PM |
| dynamically linked file | sveera | UNIX for Advanced & Expert Users | 5 | 06-03-2005 11:52 AM |
| dynamically linked file | sveera | Shell Programming and Scripting | 1 | 05-06-2005 11:40 AM |
| Need to dynamically create a file | stareja | Shell Programming and Scripting | 13 | 12-04-2004 04:40 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Dynamically ftp'ing a file
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: 1. ./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. 2. We need to pass this orders.bcp to ftp. I am calling another script in unloadtable.bld to ftp this file. 3. 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 |
|||
| Google The UNIX and Linux Forums |
| Forum Sponsor | ||
|
|