Hi,
I am trying to develop a Linux script to stop automatically RD&T, for that, the best way to do that is using the command oprmsg and launching my "S SHUTDOWN" z procedure, stopping correctly this way my z system.
I am working on Red Hat 6 and RD&T 8.5
But I need capture the output of this command oprmsg to be sure that the system is correctly stopped before execute awsstop, and I have to problems:
1) When I execute oprmsg with a command, for example:
oprmsg 'D A,L' the result is showed in screen sucessfully, but!, the command is waiting for an user response (one Enter for example).
Do you now if there are any way to execute the command oprmsg without user response?
2) When I try to redirect the oprmsg output to a file using for example:
oprmsg 'D A,L' > output.log
It is not working. Do you know how can I redirect this output to a file?.
Thank you in advance to everybody and regards.
SergioDataAdviser