The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Looking for an X11 Utility - Send Keystrokes to Multiple Clients Alon.Albert UNIX for Dummies Questions & Answers 5 07-08-2008 01:10 PM
GNU Screen: Send to Multiple Screens at Once? deckard UNIX for Advanced & Expert Users 3 02-05-2008 10:26 AM
to send email to multiple users vishwas.shenoy UNIX for Dummies Questions & Answers 0 01-25-2008 06:00 AM
Multiple send()'s seanword High Level Programming 1 12-30-2007 11:40 AM
How to send mail to multiple users ??? arunava_maity UNIX for Dummies Questions & Answers 3 10-16-2002 11:07 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 06-17-2005
cdunavent cdunavent is online now
Registered User
  
 

Join Date: Sep 2001
Location: D.C.
Posts: 55
Need to send multiple files during ftp

Hi guys...

I'm working on #!/bin/sh script in a Solaris 7 box that should send several files over to another machine via FTP. Here's what the script looks like:

# This script will send the daily MSP customer counts
# to the Crystal Reports server located at 192.168.2.106
cd /archive/data/CustCnt
ftp -n 192.145.230.106 << !
user anonymous joe@blow.com
put CustCnt.*
!


A quick ls of my /archive/data/CustCnt directory shows that there are a few files that "should" be FTP'd:

ROOT@fcivrc: pwd
/archive/data/CustCnt
ROOT@fcivrc: ls
CustCnt.060605231555.ma
CustCnt.060605231556.nyne
CustCnt.060705231542.ma
CustCnt.060705231542.nyne


The script successfully connects to the remote server, but it only sends the first file (CustCnt.060605231555.ma). The rest of the files never make it??????

I tried using ftp -i and that did not work. Any ideas as to why only the forst file is being FTP'd??

-cd
 

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 03:58 PM.


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