clandestin
IS-IT--Management
Hello
I have a curious problem with exec. I use this command to find out the status of a process. But even if the same command gives the right output when executed from command-line, using it with exec gives this: child process exited abnormally
here is the line:
catch {exec ps aux | grep P00data | grep -v grep} result
and the "result" variable is: child process exited abnormally
I've been trying this alternative with no success:
catch {exec ps aux |& grep P00data |& grep -v grep} result
I expect that when my process ist'n running, the value of "result" to be 0.
Any suggestions?
Thank you
I have a curious problem with exec. I use this command to find out the status of a process. But even if the same command gives the right output when executed from command-line, using it with exec gives this: child process exited abnormally
here is the line:
catch {exec ps aux | grep P00data | grep -v grep} result
and the "result" variable is: child process exited abnormally
I've been trying this alternative with no success:
catch {exec ps aux |& grep P00data |& grep -v grep} result
I expect that when my process ist'n running, the value of "result" to be 0.
Any suggestions?
Thank you