Quantcast
Channel: UNIX and Linux Forums
Viewing all articles
Browse latest Browse all 16232

How to execute application commands with shell script?

$
0
0
Hi Friends,

We have a application "getstatus" which needs to run on application prompt.
But it is not working with shell script.

Example:
Code:

Unix Root Prompt#
execute "crp" to go to application prompt
CRP>getstatus
displays output of app health
CRP>exit
Unix Root Prompt#

Script , which is not working:
----------------------------------
Code:

cat script.sh
CRP
getstatus
exit

Moderator's Comments:
You really need to start adding CODE tags. This is the umpteenth time we have asked you...

Viewing all articles
Browse latest Browse all 16232