Re: tricky shell script question

2008-02-12 Thread Paul Jarc
"Erik-Jan Taal" <[EMAIL PROTECTED]> wrote: > Now watch the terminal where the script was still running. I would > expect no output to be given, as I assumed the script is read into memory > at startup and not during execution and this is what happens on most > systems. On one server however, the '

tricky shell script question

2008-02-12 Thread Erik-Jan Taal
Hello, Anyone know the answer to this? Suppose the following scenario: Edit new file 'p.sh' in vim. Add these lines : #!/bin/sh sleep 30 Now save the file in vim with ':w' and chmod +x it. Then open another terminal and run the script. While that's sleeping, quickly add the following line to