| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Dwayne Schultz <email@hidden> wrote:
#!/bin/sh
tail -f [...] &
This script quits immediately but the tail continues sending output to
the shell that started the script.
I have another script:
#!/bin/sh
java [...] &
This script also quits immediately but standard out appears to be lost
with it (which is why I couldn't get kill -QUIT to work).
This isn't as critical now but does any know what is going on here?
The script works as expected when I get rid of the '&'.
Eventually, you're going to have to learn more about Unix programming. A
few things are immediately relevant, though.
I think you missed my point but then again when re-reading my above post I wasn't being entirely clear. I wanted to know why tail was able to write to the outer shell (the one running interactively) but my java program wasn't.
As it turns out my program can write to the outer shell but for some reason the stack trace is getting lost. Evidently the signal handler isn't writing to stdout. At least not in the typical way. Bug?
| References: | |
| >Re: [Semi-OT] Signal app to give stack trace ? (From: Dwayne Schultz <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.