The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
logging into vinayrao Shell Programming and Scripting 1 03-14-2008 07:57 AM
UFS logging csaunders SUN Solaris 6 10-11-2005 03:40 PM
SSH Logging? esser OS X (Apple) 0 03-10-2005 12:56 PM
need more logging dozy UNIX for Dummies Questions & Answers 3 11-18-2004 06:04 AM
logging when someone changes to su kymberm UNIX for Dummies Questions & Answers 1 09-17-2002 06:25 PM

Closed Thread
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-28-2003
Registered User
 

Join Date: Mar 2002
Posts: 14
Asking about logging in

Hi, just wriiten a sh script and as my script will try to log into another server to delete some files but when i run , it keeps on saying that my files do not exist. It seems to refer to my local directory instead. Below is my script :

FTP_HOST=ip_number
FTP_USER="user password"

REMOTE_PATH="/tmp"

## remove remote files
(echo user ${FTP_USER}
cd ${REMOTE_PATH}
rm ${REMOTE_PATH}/*.html
rm ${REMOTE_PATH}/*.pdf
echo bye
) | ( ftp -n -v ${FTP_HOST})

is this the correct method ??
Thanks
Forum Sponsor
  #2 (permalink)  
Old 08-29-2003
oombera's Avatar
Have a day :|
 

Join Date: Aug 2002
Location: Cleveland, OH
Posts: 804
You have to use the delete command to delete a remote file .. and even then you can only delete one at a time. I don't believe the asterisk will work as a wildcard.
Google UNIX.COM
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 09:04 AM.


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