🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.misc
Article #2055

how2 automate ftp ?

#2055
From: Shai Shprung
Date: Fri, 21 Feb 1997 00:00
18 lines
1412 bytes
New to the Unix ftp world...
I need to ftp a file from few servers that have a daily files ready for me,
lets say at 3:00AM
so far I am using 
"ftp [server name or IP ]"
Then I need to enter my user name and password, to type "get [file name]"
and then to type "bye"
I wish I can make a cron-job that will call some PERL (or Shell) code that
will do it for me. 
I know how to add a cron job, I know to program C, PERL and some Shell, but
I don't know how to make the ftp program to work with out me around....
let say my user name is BLA_BLA and my password is AABBCCDD
can you show me, using this user-name and password how to write something
to make the ftp run with out me typing it?
Thanks, Shai

Please CC to my email ( shai@nbase.com )
Technical Details
Message-ID: <01bc1fc9$8b57b5c0$e1021d26@shai>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f8c9b,4074f2a3dd3db50b,start
X-Google-Attributes: gidf8c9b,public
X-Google-Thread: 167763,4074f2a3dd3db50b,start
X-Google-Attributes: gid167763,public
X-Google-Thread: f72b0,4074f2a3dd3db50b,start
X-Google-Attributes: gidf72b0,public
X-Google-Thread: 110f2c,4074f2a3dd3db50b,start
X-Google-Attributes: gid110f2c,public
From: "Shai Shprung" <shai@interramp.com>
Subject: how2 automate ftp ?
Date: 1997/02/21
Message-ID: <01bc1fc9$8b57b5c0$e1021d26@shai>
X-Deja-AN: 220353623
Organization: Home
Newsgroups: comp.unix.misc,comp.unix.questions,fr.comp.os.unix,ftp.aminet.misc.unix