LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 06-18-2004, 05:52 PM   #1
kittani
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.

lftp slackware.oregonstate.edu

(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 slackware.oregonstate.edu

it says that it's not connected.

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


Thanks
 
Old 06-19-2004, 12:28 PM   #2
pointyman
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:

open slackware.oregonstate.edu
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
quit

Dave
 
  


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


All times are GMT -5. The time now is 08:18 AM.

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