View Single Post
  #4 (permalink)  
Old 10th December 2007, 08:40 AM
anilvrathod's Avatar
anilvrathod anilvrathod is offline
Junior Member
 
Join Date: Dec 2007
Location: Pune
OS: Red Hat
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
anilvrathod is on a distinguished road
Default

Dear friend use this, it will help you

Code:
#!/bin/sh
FILE_NAME="path_of_file"
HOST='IP Addr. of ftp server'
USER='user_name'
PASSWD='user_passwd'
ftp -nv <<EOF
open $HOST
user $USER $PASSWD
cd db_backups/PUNE/
put $FILE_NAME
EOF
__________________
Anil V. Rathod
RHCE
System Administrator
Styling Studio, ERC
INCAT | A TATA Technologies Company
www.incat.com www.tatatechnologies.com Email- anil.rathod@incat.com
------------------------------------------------
Cell No. +91 9011094209
------------------------------------------------

Last edited by nixcraft; 21st August 2009 at 07:10 PM. Reason: code tag added
Reply With Quote