in reply to Problem running scripts under CentOS
like waiting for <stdin> ...
Run it under strace:
$ strace -f ./script.pl
If the last line you see is
read(0,
you know it's waiting on stdin... If not, you'll likely still be able to narrow down on the issue by looking at what system calls were being made before the script enters "waiting" mode.
|
|---|