Xref: utzoo comp.unix.questions:27889 comp.unix.misc:787 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!petunia!news From: andy@polyslo.CalPoly.EDU (Andy Pippin ) Newsgroups: comp.unix.questions,comp.unix.misc Subject: Re: How do you define macros in a .netrc file? Message-ID: <27879b19.4e1c@petunia.CalPoly.EDU> Date: 6 Jan 91 21:48:09 GMT References: <1991Jan6.140100.6356@ncs.dnd.ca> Organization: Elfin Optical Lines: 41 Like, ya' know, then rpburry@ncs.dnd.ca (Paul Burry) says... ~I am trying to define the 'init' macro in the .netrc ftp startup file, ~but I cannot seem to get it to work. I was able to define the macro ~interactively, but I can't get it to work in the netrc file. Can anyone ~tell me how to do it? ~ ~I was trying: ~ ~machine themachine login thelogin password thepassword ~macdef init ~bin ~prompt ~cd pub ~ Try putting everything on seperate lines: machine expo.lcs.mit.edu login ftp password andy@polyslo.calpoly.edu macdef init hash binary prompt bell cd pub Seems to work for me, don't know why yours doesn't though.... Dominus Omus. aBp. -- Andy Pippin \ Spikes Place: because life is too andy@polyslo.CalPoly.EDU \ short to drink cheap beer. 1011 1011 110 1011 1011 110 1011 1011 110 1011 1011 110 1011 1011 110 Going free-agent in 160 days!!!