Hi, I've a Perl script that does following:
- Ssh to a device and get information, e.g.: open(DEV, "/usr/bin/ssh
-v statuser\@192.168.11.1 sh get client list| ");
- Loop through the result and display as html.
The Perl script can complete without problem when run in bash or i
Hi.
It sounds like what you need to do is :
add some logging directly in your perl script, to a separate logfile.
(And maybe re-open STDERR to that same logfile).
Then you will see exactly where and why the perl script crashes under Apache.
Do not forget that when the perl script runs under Apach
Hi,
Thanks for your advice.
We've done before by writing data read from ssh command to separate log file.
The output simply ends somewhere. Then the Perl script continues with the rest
of the code, e.g. the Perl script prints some headings, then a table
containing lines from the ssh command
You could try checking dmesg. Sometimes I see things like this in ours:
[4585112.266794] Out of memory: Kill process 18584 (perl) score 937 or
sacrifice child
[4585112.266842] Killed process 18584 (perl) total-vm:53547100kB,
anon-rss:47902052kB, file-rss:0kB
On Mon, May 22, 2017 at 9:13 PM, ST W