home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / unix / question / 14889 < prev    next >
Encoding:
Text File  |  1992-12-22  |  1.9 KB  |  65 lines

  1. Newsgroups: comp.unix.questions
  2. Path: sparky!uunet!gatech!darwin.sura.net!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!szatezal
  3. From: szatezal@magnus.acs.ohio-state.edu (Shane M Zatezalo)
  4. Subject: FTP - macros and macdef
  5. Message-ID: <1992Dec22.202855.20553@magnus.acs.ohio-state.edu>
  6. Summary: how to use a macro under FTP
  7. Keywords: FTP Macro Macdef
  8. Sender: news@magnus.acs.ohio-state.edu
  9. Nntp-Posting-Host: magnusug.magnus.acs.ohio-state.edu
  10. Organization: The Ohio State University
  11. Date: Tue, 22 Dec 1992 20:28:55 GMT
  12. Lines: 51
  13.  
  14. I wanted to use a macro with FTP, so that if I created a user,
  15. and set his shell to "FTP $macroname"
  16. it would run that macro, and then exit that macro (when it was done)
  17. and log the user out.
  18.  
  19. My question is this: how does one use macros with ftp?
  20.  
  21. I looked at the man page, and it said this:
  22.  
  23.      $ macro-name [ args ]
  24.           Execute the macro macro-name that was defined with the
  25.           macdef command.  Arguments are passed to the macro
  26.           unglobbed.
  27.  
  28. so I wrote a macro like this:
  29.  
  30. bell
  31. ascii
  32. cd /tmp/ftp
  33. get it
  34. bye
  35.  
  36. and then typed ftp $ftp.mac (the name of the file)
  37. but nothing happened. (it didn't work)
  38.  
  39. Then I tried using the macdef command in ftp like this:
  40.  
  41. ftp>macdef /tmp/ftp.mac
  42. bell
  43. ascii
  44. cd /tmp/ftp
  45. get it
  46. bye
  47. <control-d>
  48.  
  49. But that didn't work either.
  50.  
  51. What I want the user to be able to do is this: on login, he 
  52. immediately is dropped into FTP so that he can GET one file
  53. from my system, and only that one file, and can't do anything
  54. else at all.
  55.  
  56. Any help on this would be appreciated.
  57.  
  58.  Shane Zatezalo
  59.  
  60.  _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  61. :   Shane M. Zatezalo         : i-net> szatezal@magnus.acs.ohio-state.edu :
  62. :   CIS Eng Ohio State        : NeXTMail>  shane@kiwi.shws.ohio-state.edu :
  63. :  ....call T.A.P. a Futurenet BBS 614-297-7031 16.8k DS HST 425 MEGS ... :
  64. :GS:::: Apple II forever!! ::::::GO BUCKS!::::::: Play Lacrosse! :::::::GS:
  65.