Problem with scripts in ksh

Richard Kuhns rjk at sawmill.uucp
Thu Jan 11 02:06:25 AEST 1990


In article <13632 at s.ms.uky.edu> acp at ms.uky.edu (ACP Network) writes:

   [...] ksh on two of our machines seems to have trouble executing scripts.
   [...]
   executes fine as long as the statements are internal to ksh (eg, echo,
   if/then/fi, etc) but hangs after executing the first external command
   (I've tested it with ps, cat, grep, and sed).
   [...]
   Is this some obscure feature I don't know about? :-)

   Kenneth Herron
   -- 
   acp at ms.uky.edu        University of Kentucky         ACP Network Consultant
   ukma!acp         Dept. of Mathematics, room 715 POT          (606) 257-2975
			  Lexington, KY 40506

This sounds familiar.  No promises, but is it possible you're doing a
`set -o monitor' in your .kshrc/.profile?  As I recall, setting `monitor'
in a non-interactive shell caused ksh to hang after executing an external
command in a script.  I'm afraid I don't remember which version of ksh we
found this problem in.

Hope this helps.

Rich Kuhns
newton.physics.purdue.edu!sawmill!rjk



More information about the Comp.unix.questions mailing list