*BSD News Article 14064


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!constellation!mimbres.cs.unm.edu!ogicse!psgrain!m2xenix!agora!rgrimes
From: rgrimes@agora.rain.com (Rodney Grimes)
Newsgroups: comp.unix.bsd
Subject: Re: Process Communication
Message-ID: <C50J00.Lp4@agora.rain.com>
Date: 5 Apr 93 13:33:35 GMT
Article-I.D.: agora.C50J00.Lp4
References: <1pkq9p$88i@csugrad.cs.vt.edu>
Organization: Open Communications Forum
Lines: 21

skrul@csugrad.cs.vt.edu (Steve Krulewitz) writes:

>Is it possible to read and write to another process' stdin/stdio from
>another process/script file?  For example, if I wanted to drive ftp
>with a script, how would I send it commands?

#!/bin/csh
ftp -n <<!
open agate.berkeley.edu
dir
cd /pub/386BSD/386bsd-0.1
dir
quit
!

That should work in a script just fine..
-- 
Rod Grimes						rgrimes@agora.rain.com
Accurate Automation Company          All opinions belong to me and my company!
Get your free copy of  386bsd  from  agate.berkeley.edu:/pub/386BSD  via  ftp!
An out of work contractor... You need unix work done.... Send me your project!