The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



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

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 09-02-2007
pyaranoid pyaranoid is offline
Registered User
  
 

Join Date: Sep 2007
Posts: 20
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
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:09 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0