timeout
timeout copied to clipboard
pipe stdin?
I have a program that reads stdin to process something and i want to monitor its resource usage. However, cat /some/file | perl memlimit --detect-hangups -c -m 1000000 -t 10 meta/app or perl memlimit --detect-hangups -c -m 1000000 -t 10 meta/app < /some/file will just print FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0 MAXMEM_RSS -1
Apparently this script fails in such situation. What should I do?
Perhaps, modifying the script so that the parent closes STDIN after forking would help. I'm not sure, feel free to try and asend a patch if it worked.