LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-03-2012, 04:13 AM   #1
santhosh-e
LQ Newbie
 
Registered: Jan 2012
Posts: 5

Rep: Reputation: Disabled
regarding lftp


hi,

lftp -c "debug 10; open -u admin,PASS $<; rm -r -f /http; mkdir /http/config; mput -O /http/config www$(C_TOOL)/*;"
suppose i am giving these command in makefile i am facing following error.

---- Resolving host address...
---- 1 address found: 192.168.5.5
---- dns cache hit
---- Connecting to proxy 192.168.5.5 (192.168.5.5) port 3128

i cant able to download goes to hanging situation throwing socket timed out.
can u tell us what the problem.
regards
santhosh babu
 
Old 01-03-2012, 04:45 AM   #2
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
Hi,

first dissect the command line you are passing to LFTP:
Code:
lftp -c "debug 10; open -u admin,PASS $<;
Code:
rm -r -f /http;
Code:
mkdir /http/config;
Code:
mput -O "/http/config www$(C_TOOL)/*";"  <--- probably because of "config www" space between it's better to include quotation marks
so use one or two at a time to find which is the problem,
and add a siteaddress to the command line, so it will know where to connect (now there is no site/IP address to connect to)
like:
Code:
lftp -c "open HOSTNAME user $USER $PASSWD && cd "/http/config www" && mirror -R "directory";"
try it if it works, then continue adding commands to what you want to achieve
note: I'm using && between the commands to execute not ";" like you

I think your syntax may be wrong (using open -u admin,PASS $<;) but I can be wrong too.

good luck

lftp script example

Last edited by lithos; 01-03-2012 at 04:48 AM.
 
Old 01-03-2012, 06:52 AM   #3
santhosh-e
LQ Newbie
 
Registered: Jan 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
regarding tftp

hi,


how to dis-select the ftp in command line.
i update the changes what you have given but still i am facing the same error.

its not working.
 
Old 01-03-2012, 09:22 AM   #4
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
dissect - 1. To cut apart or separate (tissue), especially for anatomical study.
2. To examine, analyze, or criticize in minute detail

meaning to try first only one command (if it works) then in steps, add second command etc.

Your first part
Code:
lftp -c "debug 10; open -u admin,PASS $<;
is by my opinion not working
so you should work on this to get the login to the FTP and then adding the commands to copy
Code:
mput -O "/http/config www$(C_TOO....
I would try first:
Code:
# lftp -c  "open HOSTNAME && user USER PASSWD && cd /http/config_dir && ls"
and see if you get logged in and then cd to /http/config ... <--- adjust this directory to where you want
&& ls should list the directory
and then lftp will exit/ return to command prompt

substitute HOSTNAME and USER PASSWD with your FTP site_address and username/password

Last edited by lithos; 01-03-2012 at 10:01 AM.
 
  


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
lftp mikeshn Linux - Software 11 07-20-2011 12:44 PM
lftp and openssl jockem Red Hat 0 02-12-2009 06:29 AM
lftp problem mesh2005 Linux - Software 4 05-03-2007 07:06 AM
lftp HELP knappster Linux - Software 2 08-03-2004 10:34 AM
about lftp oskernel Linux - Software 1 10-29-2003 02:14 PM


All times are GMT -5. The time now is 05:08 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration