1826797 Members
2705 Online
109703 Solutions
New Discussion

use of rexec

 
Graham Van der vaart_1
Super Advisor

use of rexec

Hi
I have created a script that includes an rexec command to a remote OpenVMS host.
The rexec line is as follows:
/usr/bin/rexec ${NODE} -l user monitor processes /topcpu /ending=\"+00:00:30.00\" >> /var/opt/OV/share/topcpu.log

The script works fine from the command line as user root, but when it's run as a NNM action it doesn't execute the rexec part. I have edited the first line of the script to use ksh and sh, but still no luck. I can imagine the answer is quite simple, but I just can't see it. Who should be the owner of the script in this case? Permissions have been set at 777 for testing.
Regards
Graham
1 REPLY 1
Kent Ostby
Honored Contributor

Re: use of rexec

graham --

I'm not too familiar with NNM actions, but when I have similar problems with cron, its usually related to environment variables (such as path) or not using fully qualified path names.

Is there an important environment variable that would be needed for the command that isn't getting passed in the NNM action?
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"