*BSD News Article 33895


Return to BSD News archive

Xref: sserve comp.unix.questions:53013 comp.unix.admin:21487 comp.unix.misc:13230 comp.unix.bsd:14510
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msuinfo!agate!howland.reston.ans.net!europa.eng.gtefsd.com!sundog.tiac.net!usenet.elf.com!rpi!newsserver.pixel.kodak.com!newsserver.rdcs.Kodak.COM!primus!mrs
From: mrs@primus.kodak.com (Mike Salehi {CPU})
Newsgroups: comp.unix.questions,comp.unix.admin,comp.unix.misc,comp.unix.bsd
Subject: Re: waiting for tty input???
Date: 4 Aug 1994 14:24:30 GMT
Organization: Eastman Kodak Co.
Lines: 45
Sender: mrs@primus (Mike Salehi {CPU})
Distribution: world
Message-ID: <31qtmu$96s@kodak.rdcs.Kodak.COM>
References: <31b1dc$36g@news.CCIT.Arizona.EDU>
NNTP-Posting-Host: primus-gw.rdcs.kodak.com
Keywords: tty

In article <31b1dc$36g@news.CCIT.Arizona.EDU>, ron@argus.lpl.Arizona.EDU (Ron Watkins) writes:
|> I have a shell script which is suposto run a tape drive on a remote host.
|> Inside the script, we were doing things like:
|> 
|> mt -f /dev/nrst1 rewind
|> dd if=xxx of=/dev/nrst1 obs=28800
|> etc...
|> 
|> We modified the script to do the following format of commands:
|> 
|> rsh host mt -f /dev/nrst1 rewind
|> dd if=xxx | rsh host  dd of=/dev/nrst1 obs=28800
|> etc...
|> 
|> Problem is, it seems that on every mt rewind command, the script pauses
|> and produces a 'waiting for tty input' message. Thus, I can't make the script
|> work without some form of user intervention. These scripts are normally run
|> in the background using 'script &' syntax under csh. Moving the job to
|> the foreground 'fg' sometimes sems to work but not always. Anyhow,, this is
|> unacceptable. These jobs are often submitted and then the terminal is logged 
|> out due to the long time required to write the tape.
|> I need to get answers to some questions regarding this:
|> 
|> 1) Why does this happen?
|> 
|> 2) How can I prevent this from happening?
|> 
|> Thanks,
|> 			Ron Watkins
|> --
|> Ron Watkins    [ron@argus.lpl.arizona.edu]    /            /~~~~)     /
|> 931 Gould-Simpson                            /            /____/     /
|> University of Arizona                       /            /          /
|> Tucson AZ. 85721 -- (602) 621-8606         (____ unar & / lanetary (____ ab.


 
I have not tried your script but try dd if=xxx | rsh host -n   dd of=/dev/nrst1 obs=28800 
you can see -n in the rsh man pages.-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Mike (Mehran) Salehi		
Now working for CIBER(CPU) at Kodak
Mail mrs@rdcs.kodak.com
phone (716)253-9446  USA
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-