All,
I have written an emergency linux thingo which when placed into any of
my linux based machine "immitates" that machine with all daemons running.
This required for me to have my own "init", which is just a very long
bash based shell script.
It works very nicely, but I have one last annoying problem.
When the kernel calls "init" then at the end of it I need to open a few
ttys which I do using:
open -c X -- bash -rcfile /etc/bashrc
were X is the tty number.
But at the end of the INIT script I need to
exec bash -rcfile /etc/bashrc
or
bash -rcfile /etc/bashrc
In the bashrc file I have
stty intr ^C
stty quit ^\
stty brkint
which lets Control C work in all terms I have opened using "open"
BUT in the one which is based on init.
Now doing:
trap "echo hello" 2
show "hello" in all ttys opened by "open" but the one using "exec"
doesnt show a thing, so it might not be generated.
Looking at "stty -all" shows the same in every tty.
Looking at dumpkeys shows the same in every tty.
doing showkey -m shows the same in all ttys.
I cant do
exec open -c 1 -- bash -rcfile /etc/bashrc
because it would return straight away and I would kill "init".
Any ideas anyone?
jobst
--
Though the pen IS mightier than the sword, the sword is mightier at any given moment.
__, Jobst Schmalenbach, [EMAIL PROTECTED], Technical Director
_ _.--'-n_/ Barrett Consulting Group P/L & The Meditation Room P/L
-(_)------(_)= +61 3 9532 7677, POBox 277, Caulfield South, 3162, Australia
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug