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 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 11:57 AM
UFS logging csaunders SUN Solaris 6 10-11-2005 06:40 PM
SSH Logging? esser OS X (Apple) 0 03-10-2005 04:56 PM
need more logging dozy UNIX for Dummies Questions & Answers 3 11-18-2004 10:04 AM
logging when someone changes to su kymberm UNIX for Dummies Questions & Answers 1 09-17-2002 09:25 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 08-29-2003
blueberry80 blueberry80 is offline
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
 

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 08:35 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