Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Aug 2001 16:15:54 +1000
From:      Edwin Groothuis <edwin@mavetju.org>
To:        Odhiambo Washington <wash@wananchi.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: FTP Auto-Send Need
Message-ID:  <20010827161554.P29424@k7.mavetju.org>
In-Reply-To: <20010827090442.F3234@ns2.wananchi.com>; from wash@wananchi.com on Mon, Aug 27, 2001 at 09:04:42AM %2B0300
References:  <3.0.5.32.20010826102823.01151810@mail.sage-american.com> <20010827080143.D29422@k7.mavetju.org> <20010827084409.D3234@ns2.wananchi.com> <20010827155009.O29424@k7.mavetju.org> <20010827090442.F3234@ns2.wananchi.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Aug 27, 2001 at 09:04:42AM +0300, Odhiambo Washington wrote:
> | > wash:~$ echo '$ blaat' | ftp -d longonot
> | > Macro definition missing null line terminator.
> | > ---> SYST
> | > Please login with USER and PASS.
> | > 'blaat' macro not found.
> | > ---> QUIT
> | > wash:~$
> | 
> | well, unfortunatly for you I've lost my crystal ball, so I don't
> | know what's in your .netrc and as a result I have no clue what
> | could be wrong there. If you would like an answer from me, you
> | should at least include some information about it, giving me nothing
> | is as usefull as complaining about the weather.
> | 
> 
> Hello Edwin,
> 
> I just did a copy cat test with what you gave but in this case I was
> attempting an ftp session to a remote machine. I think that is where the
> madness (on my part) started ;-)
> It's because I was trying to simulate what the original poster wanted.
> 
> machine longonot # longonot is the remote machine the dir Testdir exists
>         login wash
>         password XXXXXX
> macdef blaat
>         cd Testdir
>         pwd
>         put .profile profile
>         quit
> 
> You see I only changed 2 items ;-)

Funny, I never knew this would happen if you forgot the last empty
line at the end :-)

 macdef name
	   Define a macro.  This token functions like the ftp macdef com-
	   mand functions.  A macro is defined with the specified name;
|	   its contents begin with the next .netrc line and continue until
|	   a null line (consecutive new-line characters) is encountered.
	   If a macro named init is defined, it is automatically executed
	   as the last step in the auto-login process.

So add an extra empty line to it and everything will be sweet.

Edwin

-- 
Edwin Groothuis   |              Personal website: http://www.MavEtJu.org
edwin@mavetju.org |           Interested in MUDs? Visit Fatal Dimensions:
------------------+                       http://www.FatalDimensions.org/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010827161554.P29424>