M
Mark Seger
I have the following simple script.
#!/usr/bin/perl -w
print `resize`;
If I run it in the foreground it works just fine, but if I run it in the
background it hangs until I foreground it. Is there a way to tell if
you're running in the background - it may be a UNIX feature that you
cannot. Otherwise, is there some way to diddle the environment (perhaps
redirecting file descriptors) so it won't hang?
-mark
#!/usr/bin/perl -w
print `resize`;
If I run it in the foreground it works just fine, but if I run it in the
background it hangs until I foreground it. Is there a way to tell if
you're running in the background - it may be a UNIX feature that you
cannot. Otherwise, is there some way to diddle the environment (perhaps
redirecting file descriptors) so it won't hang?
-mark