Article View: comp.sys.sun
Article #14065Shell problems with redirection
From: Colin Biggin
Date: Sat, 03 Mar 1990 07:53
Date: Sat, 03 Mar 1990 07:53
35 lines
1342 bytes
1342 bytes
We are having problems with two shell files that run in the background. The first is: #!/bin/sh while : do myprog > /tmp/aw$$ ed - /tmp/aw$$ <<\! s/.*: *[^ ]* *[^ ] *[^ ]* *[^ ]* *[^ ]* *[^ ]* *// w ! . /tmp/aw$$ done It runs forever. Sometimes we find /tmp/sh* files lying around with the contents of the << file in them. When this happens the ed sometimes fails. We are suspicious that this process also causes the system to run out of file descriptors. The second program is: #!/bin/csh -f myprog1 >> /u/logs/logfile myprog2 >> /u/logs/logfile Sometimes when this is run in the background the output from myprog1 and 2 gets intermingled. We have workarounds for both of these problems but we would like to know if they are known bugs and if there are patches for them or if they are fixed in 4.1. Colin Biggin Digital Media Networks Toronto, Ontario
Technical Details
Message-ID:
<5459@brazos.Rice.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!rice!sun-spots-requestShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!rice!sun-spots-request From: dmntor!dmnboss!colin@uunet.uu.net (Colin Biggin) Newsgroups: comp.sys.sun Subject: Shell problems with redirection Keywords: SunOS Message-ID: <5459@brazos.Rice.edu> Date: 3 Mar 90 07:53:55 GMT Sender: root@rice.edu Organization: Sun-Spots Lines: 35 Approved: Sun-Spots@rice.edu X-Sun-Spots-Digest: Volume 9, Issue 63, message 8