On Wed, 14 Aug 2002 19:33:08 +0700, you wrote:

>Interesting situation here with that in place: I'm using sudo to allow users
>to control the DSL connection. One of the scripts is supposed to stay
>running in the background when the user logs off, but  when I use the menu
>as the shell it is killed when the session ends. If I use the normal shell,
>all is ok (but the users can get to the command prompt)

I've reproduced this with the following three scripts:

# test.sh run as the user's shell
#!/bin/bash

echo Running test2.sh
/~/test2.sh &
read

# test2.sh
#!/bin/bash
echo test2.sh started
echo running test3.sh
/~/test3.sh
wait
echo test2.sh finishing

# test3.sh
#!/bin/bash
while true; do
 echo > /dev/null
done

When run from a normal shell, test.sh finishes and leaves the other two
scripts running as expected.

When test is run as the 'login shell', everything finishes when the user
logs out.

Why?



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to