Register
It is currently Wed Apr 23, 2014 6:19 am

ftp upload


All times are UTC - 6 hours


Post new topic Reply to topic  [ 1 post ] 
Author Message
 PostPosted: Sun Nov 27, 2011 8:48 am   

Joined: Thu Nov 10, 2011 7:31 pm
Posts: 21
Code:
#! /bin/bash
if [ "$6" = "" ];then
   cat <<_EOF_
Usage:
autoftp [server][password][username][localcd][remotecd][filetoupload]
_EOF_
else
   ftp -inv <<EOF
   open $1
   user $3 $2
   lcd ~/$4
   cd /$5
   put $6
EOF
   exit 0
fi

o:|


Top
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  


BashScripts | Promote Your Page Too
Powered by phpBB © 2011 phpBB Group
© 2003 - 2011 USA LINUX USERS GROUP