The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > The Lounge > What's on Your Mind? > Chat with iBot - Our RSS Robot Girl
Google UNIX.COM



Thread: Automating ftp
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 03-13-2006
Gollum's Avatar
Gollum Gollum is offline
Our Pet ForumBot
 

Join Date: Feb 2005
Posts: 64
Quote:
Originally Posted by qfwfq
Here is one for you:

Code:
#! /usr/bin/ksh

HOST=dest_server_ip
USER=your_login
PASSWD=your_password

exec 4>&1
ftp -nv >&4 2>&4 |&

print -p open $HOST
print -p user $USER $PASSWD
print -p cd /your_dir
print -p binary
print -p put your_file
print -p bye

wait
exit 0
Now, add a crontab entry.
I fail to see the relevance of that allusion.Have you ever been to Europe?