Re: ftp get file
From: Barry Margolin (barry.margolin@level3.com)
Date: 04/04/03
- Next message: Jeremiah DeWitt Weiner: "Re: uses for snoop?"
- Previous message: Sven Mascheck: "Re: Redirecting output from "kill" command?"
- In reply to: Yakov: "Re: ftp get file"
- Next in thread: Georgi Manev: "Re: ftp get file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: Barry Margolin <barry.margolin@level3.com> Date: Fri, 04 Apr 2003 15:57:10 GMT
In article <ce48b9b8.0304040440.71417009@posting.google.com>,
Yakov <ybaratt@aol.com> wrote:
>Well, This is my script
>In first file I wrote:
>
>ftp 216.139.143.179
>
>It connected without asking a password, it is in .netrc file.
>second file has script:
>ftp get /odbclog/w3svc5/filename.log /monitor/webstat/ filename.log
>
>and after appears >"usage: ftp host-name [port]",
>
> and if after making connection by first file I'm entering the same
>code manually from command line, it works.
I think the error message is pretty obvious. The argument to the "ftp"
command is the name of the server you want to connect to. You can't put
subcommands like "get filename" there -- where did you get the idea you
could? You have to enter the subcommands in response to the prompts that
displays. If you want to script it, you can pipe the commands to its
standard input using a here-document:
ftp 216.139.143.179 <<EOF
get /odbclog/w3svc5/filename.log /monitor/webstat/filename.log
quit
EOF
-- Barry Margolin, barry.margolin@level3.com Genuity Managed Services, a Level(3) Company, Woburn, MA *** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups. Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.
- Next message: Jeremiah DeWitt Weiner: "Re: uses for snoop?"
- Previous message: Sven Mascheck: "Re: Redirecting output from "kill" command?"
- In reply to: Yakov: "Re: ftp get file"
- Next in thread: Georgi Manev: "Re: ftp get file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|