home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / ultrix / 6675 < prev    next >
Encoding:
Text File  |  1992-09-03  |  1.2 KB  |  31 lines

  1. Newsgroups: comp.unix.ultrix
  2. Path: sparky!uunet!gumby!wupost!psuvax1!news.cc.swarthmore.edu!hirai
  3. From: hirai@cc.swarthmore.edu (Eiji Hirai)
  4. Subject: Re: FTP batch style ?
  5. Message-ID: <0R1PBQGD@cc.swarthmore.edu>
  6. Sender: news@cc.swarthmore.edu (USENET News System)
  7. Nntp-Posting-Host: gingko
  8. Organization: Information Services, Swarthmore College, Swarthmore, PA, USA
  9. References: <1992Sep3.120725.1@vax.sonoma.edu>
  10. Date: Thu, 3 Sep 1992 22:52:39 GMT
  11. Lines: 18
  12.  
  13. mccalld@vax.sonoma.edu writes:
  14. >   I'm trying to come up with a script file which FTP's an empty file
  15. > to another host (local) which is non-UNIX/ULTRIX
  16.  
  17. It's not clear whether you're putting a file or getting a file.  In any
  18. case, something like this with modifications will probably work:
  19.  
  20. #!/bin/sh
  21. ( echo 'open HOSTNAME';
  22.   echo 'user USERNAME PASSWORD';
  23.   echo 'put FILENAME';
  24.   echo 'quit' ) | /usr/ucb/ftp -n
  25.  
  26. --
  27. Eiji Hirai <hirai@cc.swarthmore.edu>    :     :    :   :  : :: ::: :::: :::::
  28. Unix Hacker for Swarthmore College      :     :    :   :  : :: ::: :::: :::::
  29. Information Services, Swarthmore, PA, USA.      Copyright 1992 by Eiji Hirai.
  30. I don't speak for Swarthmore College.                    All Rights Reserved.
  31.