How to define macros in .netrc?
Max Heffler
max at compaq.com
Sat May 11 12:32:00 AEST 1991
231b3679 at fergvax.unl.edu (Mike Gleason) writes:
>macro called 'init' it will execute that macro when you login. Here's what
>I would like to have for every site in my .netrc:
>machine rascal.ics.utexas.edu
> login anonymous
> password 231b3679 at fergvax.unl.edu
> macdef init
> cd pub
> type i
> verbose
> ls -lrt
The following works for me:
machine oswego.oswego.edu login anonymous password max at compaq.com macdef init
ls
Maybe it has something to do with line continuation...
--
Max Heffler, Senior Software Engineer internet: max at compaq.com
Compaq Computer Corporation uucp: ..!uunet!max at compaq.com
P.O. Box 692000 - M050701 phone: (713) 378-8366
Houston, Texas 77269-2000 fax: (713) 374-7305
More information about the Comp.unix.questions
mailing list