rpburry@ncs.dnd.ca (Paul Burry) (01/06/91)
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>
Thanks,
Paul
--
----------------------------------------------------------------------
Paul Burry
Voice: (613)-991-7325 Internet: rpburry@ncs.dnd.ca
Fax: (613)-991-7323 UUCP: ..!{uunet,cunews}!ncs.dnd.ca!rpburryandy@polyslo.CalPoly.EDU (Andy Pippin <The Elf>) (01/07/91)
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
~<blank line>
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!!! rpburry@ncs.dnd.ca (Paul Burry) (01/08/91)
Thanks to all those who replied.
My initial post was missing one vital piece of information: the OS version.
It seems that while the manual page describes macros, and macros can indeed
be defined interactively, Ultrix 3.0's ftp client is broken and cannot handle
macro definitions in the .netrc file.
I ftped a new ftp client from uunet:networking/ftp.tar.Z, compiled it, fixed
the one typo where a procedure named herror was invoked (presumably they
meant perror), and I am once again a happy camper.
Thanks again,
Paul
--
----------------------------------------------------------------------
Paul Burry
Voice: (613)-991-7325 Internet: rpburry@ncs.dnd.ca
Fax: (613)-991-7323 UUCP: ..!{uunet,cunews}!ncs.dnd.ca!rpburryrickert@mp.cs.niu.edu (Neil Rickert) (01/08/91)
In article <1991Jan8.034159.13291@ncs.dnd.ca> rpburry@ncs.dnd.ca (Paul Burry) writes: > >I ftped a new ftp client from uunet:networking/ftp.tar.Z, compiled it, fixed >the one typo where a procedure named herror was invoked (presumably they >meant perror), and I am once again a happy camper. > Actually, they meant 'herror'. If you don't have it, you have a broken or outdated resolver library. -- =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*= Neil W. Rickert, Computer Science <rickert@cs.niu.edu> Northern Illinois Univ. DeKalb, IL 60115 +1-815-753-6940