non-interactive shells- nonblocking?

From: Shaddin Doghmi (sfd22_at_cornell.edu)
Date: 07/05/03


Date: Sat, 05 Jul 2003 00:40:42 -0400

According to what ive tried, non-interactive shells that execute a
non-terminating process dont block on that process (dont wait for it to
exit). These shells terminate and exit, and leave the process running. a
bash script that simply executes command Y, where Y is a daemon or
something, immediately exits after starting Y as a process, and doesnt
send a signal to terminate Y. What exactly happens here? is this default
behaviour for non-interactive scripts executing any command Y, or does it
depend on what the command is? Is it because of the lack of a tty? Dont
shells usually wait for the return value of the command? or does it just
skip that when the return value doesnt need to be used for anything ?

could someone elaborate on the rationale and details of this?



Relevant Pages

  • Re: non-interactive shells- nonblocking?
    ... > According to what ive tried, non-interactive shells that execute a ... > non-terminating process dont block on that process (dont wait for it to ... These shells terminate and exit, ... > behaviour for non-interactive scripts executing any command Y, ...
    (comp.unix.shell)
  • [Full-Disclosure] Advanced usage of system() function.
    ... and call its arguments as a command for shell. ... as we can see we still didnt get what we want (typing exit ... Connection closed by foreign host. ... think what we want to execute. ...
    (Full-Disclosure)
  • Advanced usage of system() function.
    ... and call its arguments as a command for shell. ... as we can see we still didnt get what we want (typing exit we are ... Connection closed by foreign host. ... think what we want to execute. ...
    (Bugtraq)
  • Re: nuclear shell model periodic table
    ... >> yet what about if they dont move linearily but say vibrate?? ... >> take the first lanthanoid say Cerium ... >> electrons are stuffed only at the third shell ... >> ok bring all thwe binding energies of all the shells ...
    (sci.physics)
  • Re: should these be fixed for python 2.4?
    ... > stdout and stderr as strings and the exit status. ... but either you use disk files or it's more work. ... I imagine is due to limitations of pipes' ... You're trying to execute the whole ...
    (comp.lang.python)