Re: ftp get file

From: Yakov (ybaratt@aol.com)
Date: 04/04/03


From: ybaratt@aol.com (Yakov)
Date: 4 Apr 2003 04:40:36 -0800

Barry Margolin <barry.margolin@level3.com> wrote in message news:<Hx4ja.33$jn5.1295@paloalto-snr1.gtei.net>...
> In article <ce48b9b8.0304031510.40f36b45@posting.google.com>,
> Yakov <ybaratt@aol.com> wrote:
> >I conected from Unix to WinNT server as a FTP client and tried to use
> >Get method to copy a file.
> >When I did this from command line, it works fine, but when I put the
> >same command into a shell file, I got a message:
> >"usage: ftp host-name [port]",
> >but ftp connection already established and from command line it is
> >working.
> > Did anybody had a simular problem?
>
> Post the script. It's impossible to tell what you're trying to do from
> this vague description.

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.
Thanks
Yakov



Relevant Pages

  • Re: Keeping pppd alive--how?
    ... >>wrote a script to dial up my ISP, wait 40 seconds, then start up Jay's ... Perhaps using the netstat command to do ... >options tab is an option to redial is connection is lost. ... My Linux machine is text only--no GUIs. ...
    (alt.os.linux.redhat)
  • Re: Wireless login
    ... well you can put a "pause" command in the script so you can see what the ... My guess is you do not have a connection when logging in. ... >I have two wireless laptops logging into sbs2003. ... > net use commands to map two drives in the sbs login script. ...
    (microsoft.public.windows.server.sbs)
  • Re: script and ssh
    ... > I have this script: ... after the connection it wait a command and don't execute the ...
    (comp.security.ssh)
  • Re: [SLE] Cron & wvdial
    ... That option under cron has disappeared. ... I used to get my mail from dialup via a bash script I wrote and called ... # Script to initiate a ppp connection. ... # I put most of the common options on this command. ...
    (SuSE)
  • Re: Batch FTP fails at one location
    ... >I have run the following FTP script without any problems for over a year at ... When I visited a new client site the script ... > I invoke the script with this command in a batch file: ... Try another FTP client, in passive mode. ...
    (microsoft.public.windowsxp.network_web)