-
ftp help
could someone provide me with a script to log into an ftp server, do a
couple of things and STAY logged in? this does its stuff and exits:
HOST=ddddd
USER=uuuuu
PASSWD=pppppp
ftp -n $HOST <<E
quote USER $USER
quote PASS $PASSWD
bin
hash
prompt
E
thanks for any pointers.
--
Snow White's dwarfs become gnomes
-- [url]http://news.bbc.co.uk/1/hi/england/kent/4349726.stm[/url]
The world has gone mad.
-
Re: ftp help
Walter Mitty wrote:[color=blue]
> could someone provide me with a script to log into an ftp server, do a
> couple of things and STAY logged in? this does its stuff and exits:[/color]
I think a big part of your problem is the policy specific to the server.
Some will automatically log you off after a short period of inactivity,
and you can't change that.
--
Ed Hurst
------------
return addy is spam trap
try je hurst at gmail dot com
-
Re: ftp help
"Ed" risked the wrath of Usenet weenies mastering
mommies computer when he ventured forth on 2006-02-06, commmitted
his life to the whims of Google, and spluttered:
[color=blue]
> Walter Mitty wrote:[color=green]
>> could someone provide me with a script to log into an ftp server, do a
>> couple of things and STAY logged in? this does its stuff and exits:[/color]
>
> I think a big part of your problem is the policy specific to the server.
> Some will automatically log you off after a short period of inactivity,
> and you can't change that.
>[/color]
Nothing to do with timeouts. The script seems to force a logout at
script end.
--
Snow White's dwarfs become gnomes
-- [url]http://news.bbc.co.uk/1/hi/england/kent/4349726.stm[/url]
The world has gone mad.
-
Re: ftp help
"Bill" risked the wrath of Usenet weenies mastering
mommies computer when he ventured forth on 2006-02-07, commmitted
his life to the whims of Google, and spluttered:
[color=blue]
> On 6 Feb 2006 11:21:18 GMT, Walter Mitty
> <mitticus@gmail.com> wrote:[color=green]
>> could someone provide me with a script to log into an ftp server, do a
>> couple of things and STAY logged in? this does its stuff and exits:
>>
>> HOST=ddddd
>> USER=uuuuu
>> PASSWD=pppppp
>>
>> ftp -n $HOST <<E
>> quote USER $USER
>> quote PASS $PASSWD
>> bin
>> hash
>> prompt
>> E
>>
>>
>> thanks for any pointers.
>>[/color]
> An ftp script usually logs out when it ends. Perhaps what you want is a
> .netrc file. (man netrc)
>[/color]
Thats on the way : thanks. I can now log in using
ftp sitename.com
(ideally i wouldnt have to specify the remote site name either, but I
suppose thats why scripts exist).
BUT now I cant run the default settings I want such as bin & prompt :
well, there are command line parms for bin mode, but not for hash and
prompt.
Is there some sort of "default" settings for ftp?
The manual doesnt say anything unless I have missed it.
--
Snow White's dwarfs become gnomes
-- [url]http://news.bbc.co.uk/1/hi/england/kent/4349726.stm[/url]
The world has gone mad.