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