Red Hat Bugzilla – Bug 51739
Cannot enable job control on ksh script run through rsh
Last modified: 2008-05-01 11:38:00 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.77 [en] (X11; U; Linux 2.4.5 i686)
Description of problem:
In an attempt to fix a problem with LSF (from Platform Computing),
I am using a ksh script to run jobs remotely. The purpose of this
ksh script is simply to put another program into its own process
group to prevent SIGHUP from being propogated to this program.
Unfortunately, this script does not work on Linux (but it does work
on all version of Solaris that I've tried) since the command 'set -m'
within the script complains that it has no controlling tty, and thus
it cannot enable job control.
The script attached and is called 'newPG.ksh'.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.run: rsh <machine> newPG.ksh whoami
Actual Results: /home/system/scripts/newPG.ksh: No controlling tty (open
/dev/tty: Device not configured)
/home/system/scripts/newPG.ksh: Can't find tty file descriptor
/home/system/scripts/newPG.ksh: warning: won't have full job control
 + Done exec $*
Expected Results: It should simply have printed 'michael' without any
Created attachment 27754 [details]
Korn Shell script to put program into new process group
rsh doesn't allocate a tty... "ssh -t" will, OTOH.