Re: .netrc for ftp to solaris 8
From: Hanspeter 'Happl' Oberlin (spam-for-happl_at_bluemail.ch)
Date: 05/13/04
- Next message: Robin Storch: "Re: .netrc for ftp to solaris 8"
- Previous message: Robin Storch: "Re: .netrc for ftp to solaris 8"
- In reply to: Robin Storch: "Re: .netrc for ftp to solaris 8"
- Next in thread: Robin Storch: "Re: .netrc for ftp to solaris 8"
- Reply: Robin Storch: "Re: .netrc for ftp to solaris 8"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 13 May 2004 17:24:47 +0200
In article <40a38f52$0$81187$a0465688@nnrp.fuse.net>, "Robin Storch" <robin_storch@trihealth.com> wrote:
>Yea, at the prompt instead of just logging in and giving me ftp> when I
>type: ftp (IP address), it gives me a prompt to login. The prompt contains
>the machine IP and the name I am logged in as, not the login name in the
>.netrc.
That's the normal behaviour of ftp.
After that you have to enter "user username", enter key, pwd (password),
enter key and then you are connected to the remote machine and can put
or get files.
>My .netrc looks like:
>machine XXX.XXX.XXX.XXX login username password pwd
That seems to be correct. But if possible I would use the machine name
and not the IP adress.
>The .netrc also contains three other lines containing machine names of aix
>servers, and those login just fine. Actually, I put a line in for another
>solaris 8 server I have, and that one logs in just fine too. I'm thinking
>it has to be this solaris box, there's something that's stopping me but I
>can't tell what.
In scripts I use ftp in the following forms:
ftp -v -n machinename <<_ftp
user username password
dir
_ftp
ftp -v machinename <<_ftp
dir
_ftp
-v --> verbose
-n --> prevents an automatic login on the initial connection
replace machinename, username and password with your environment
- Next message: Robin Storch: "Re: .netrc for ftp to solaris 8"
- Previous message: Robin Storch: "Re: .netrc for ftp to solaris 8"
- In reply to: Robin Storch: "Re: .netrc for ftp to solaris 8"
- Next in thread: Robin Storch: "Re: .netrc for ftp to solaris 8"
- Reply: Robin Storch: "Re: .netrc for ftp to solaris 8"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|