Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wotan!twisto!isis!max From: max@compaq.com (Max Heffler) Newsgroups: comp.unix.questions Subject: Re: How to define macros in .netrc? Keywords: ftp .netrc Message-ID: Date: 11 May 91 02:32:00 GMT References: <231b3679.673793060@fergvax> Sender: news@twisto.compaq.com Lines: 25 231b3679@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@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@compaq.com macdef init ls Maybe it has something to do with line continuation... -- Max Heffler, Senior Software Engineer internet: max@compaq.com Compaq Computer Corporation uucp: ..!uunet!max@compaq.com P.O. Box 692000 - M050701 phone: (713) 378-8366 Houston, Texas 77269-2000 fax: (713) 374-7305