I'm having problems with Korn shell's exec ...I have converted
some old csh scripts to ksh, which seems to have worked fine,
except for two problems:-
(1) When I kill the parent process - the child processes do not
all die!!! (This one is driving me up the wall).
Complication: I need to keep one child alive (I use nohup ... & for this)
As the children did not die with their parent, I tried to
kill them in the parent's interupt routine with kill -hup 0
- unfortunately this results in an infinite loop into the
interupt routine ...of course!
(2) When I exec another ksh script, instead of overwriting
the current process - a child process is spawned....why
for heaven sake???
One more question. What exactly does ksh -p do for me (I thought
it just prevent the ksh reading my .profile, and so would
be good to place on the first line of my scripts, however according
to "Unix Desktop Guide to the Korn Shell" ( a better book than
Korn book for most things IMHO) it described this option as
"Set protected mode" but fails to elaborate further.
I'd be grateful for any help or suggestions. (E-mail response
would be preferred, but I'll try to check back here.)
"As the leader in the cellular industry and a company that places top priority
on the interests and concerns of our customers and the public, we intend to
address these concerns in a straightforward, responsible manner.
..First, let me assure you that all of our products are safe."- Pres. Motorola GSS