![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need to dynamically create a file | stareja | Shell Programming and Scripting | 14 | 05-07-2009 07:15 AM |
| How to write current Date dynamically in a file | Sree_2503 | Shell Programming and Scripting | 5 | 10-17-2006 05:19 PM |
| copy files dynamically from within a file | chiru_h | Shell Programming and Scripting | 1 | 08-21-2006 06:24 PM |
| dynamically linked file | sveera | UNIX for Advanced & Expert Users | 5 | 06-03-2005 02:52 PM |
| dynamically linked file | sveera | Shell Programming and Scripting | 1 | 05-06-2005 02:40 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | 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 |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|