LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-29-2008, 04:33 PM   #1
idgeitman
LQ Newbie
 
Registered: Apr 2006
Distribution: Mandriva 2008
Posts: 28

Rep: Reputation: 15
ftp bash script


Hey all,

I've been trying to get a little ftp script to work but when it goes to actually upload the file it just hangs, Any ideas on what im doing wrong?
thanks!

ftp -ivn <<EOL
open ftpaddress
user username password
binary
lcd /home/idgeitman/Desktop/
put example.jpg
bye
quit



~ Idgeitman
 
Old 04-29-2008, 05:03 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
well you aren't ending the redirection. Staying with what you've done you should have "EOL" after the quit to signify the end of the redirection.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FTP Bash script Elguapo Programming 2 06-07-2007 02:26 PM
FTP in a Bash Shell Script redirection sleepyhomme Programming 2 05-02-2007 12:53 PM
bash script AND ftp bokini Linux - General 2 01-04-2006 05:33 PM
how to while in a ftp bash script dezeque Programming 3 06-12-2004 05:13 PM
bash script+ftp+ls->var g00ral Programming 1 05-05-2004 07:58 AM


All times are GMT -5. The time now is 06:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration