How do you define macros in a .netrc file?

Andy Pippin <The Elf> andy at polyslo.CalPoly.EDU
Mon Jan 7 08:48:09 AEST 1991



Like, ya' know, then rpburry at 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
~<blank line>

	Try putting everything on seperate lines:

machine expo.lcs.mit.edu
login  ftp
password andy at 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 at 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!!!  



More information about the Comp.unix.questions mailing list