The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
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

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-02-2007
Registered User
 

Join Date: Sep 2007
Posts: 13
Stumble this Post!
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
Reply With Quote
Google The UNIX and Linux Forums
Forum Sponsor
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 09:05 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0