Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 06-18-2004, 04:52 PM   #1
LQ Newbie
Registered: May 2004
Posts: 20

Rep: Reputation: 0
lftp Scripting

hey folks... i need help since i'm not the best scripter in the world.

I need a script that executes the following functions for lftp....but I don;t know how to make it work right since the lftp switches shells and the other commands are lost.


(then inside the lft prompt after it has connected)

mirror -e /pub/slackware/slackware-9.1 /pub/slackware-9.1
mirror -e /pub/slackware/slackware-9.1-iso /pub/slackware-9.1-iso
mirror -e /pub/slackware/slackware-current /pub/slackware-current

That's all it needs to do.. the commands work fine by themselves but i don;t know how to script it.... if i put them all into the same script it leaves out the mirror commands. If I run a script to execute the lftp connection as follows...calling to an outside script for commands...

lftp -f

it says that it's not connected.

anyone have any idea how to script these 4 basic commands so they work right?

Old 06-19-2004, 11:28 AM   #2
LQ Newbie
Registered: Jun 2004
Posts: 9

Rep: Reputation: 0
Hi. I think you want something like this:

$ lftp slackftp

The slackftp file should contain:

mirror -e /pub/slackware/slackware-9.1 /pub/slackware-9.1
mirror -e /pub/slackware/slackware-9.1-iso /pub/slackware-9.1-iso
mirror -e /pub/slackware/slackware-current /pub/slackware-current



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 problem bipins1979 Linux - General 1 06-21-2006 10:20 AM
lftp Problem / Question LinuxGeek Linux - Software 5 11-02-2004 10:55 PM
lftp HELP knappster Linux - Software 2 08-03-2004 10:34 AM
about lftp oskernel Linux - Software 1 10-29-2003 02:14 PM
Is lftp installed by default on... Coolrunr Linux - Software 3 09-30-2003 05:02 PM

All times are GMT -5. The time now is 07:02 PM.

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