* ftp automatic login
@ 1999-08-24 4:00 acturro
1999-08-25 4:00 ` Sua
0 siblings, 1 reply; 2+ messages in thread
From: acturro @ 1999-08-24 4:00 UTC (permalink / raw)
Hi,
does someone know how to send files selected i.e. by command find via
ftp using automatic login information $HOME/.netrc? (as parameter list
for command mput)
If pipe is on and the first character of the file name is the vertical
bar (|) the remainder of the argument is interpreted as shell command.
ftp then forks a shell.
But it does not work.
I'm using the DigitalUnix 4.0D.
TIA.
Acturro.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: ftp automatic login
1999-08-24 4:00 ftp automatic login acturro
@ 1999-08-25 4:00 ` Sua
0 siblings, 0 replies; 2+ messages in thread
From: Sua @ 1999-08-25 4:00 UTC (permalink / raw)
Hej.
acturro wrote:
>
> does someone know how to send files selected i.e. by command find via
> ftp using automatic login information $HOME/.netrc? (as parameter list
> for command mput)
>
> If pipe is on and the first character of the file name is the vertical
> bar (|) the remainder of the argument is interpreted as shell command.
> ftp then forks a shell.
> But it does not work.
Well, try this (you can write all this stuff on one line,
if you remove comments):
echo "machine <remote> login <yourname> password <yourpasswd> macdef init" >
.netrc;
echo "prompt" >> .netrc; # probably not needed
find . -name "whatever" -exec echo "put" {} >> .netrc \; ;
echo "bye" >> .netrc;
echo >> .netrc;
ftp;
rm -f .netrc # just in case (the file will be world readable, probably)
Change <remote> into your.remote.machine.name, <yourname> into your remote
login,
<yourpasswd> into your remote passwd, and <. -name "whatever"> into whatever you
use for your find command.
I'd install ssh and use scp in your case, however.
Regards,
Sua
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1999-08-25 4:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-08-24 4:00 ftp automatic login acturro
1999-08-25 4:00 ` Sua
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox