Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Run a shell script

Status
Not open for further replies.

rohitair

Programmer
Aug 30, 2011
6
IN
I am trying to run a script ,I am not able to run it and get output any sugsstions

=GET("SHL"," -CMD " +"/opt/ggol/wtx8/launcher_in/maps/monitor.sh -T")
 
Have you tried using '-CL' or '-CLI' instead of '-CMD'?
 
I tried both options as you suggested but exit call failed is the error I am gettin
 
I wish I could help you more. Unfortuantely we aren't using WTX in a unix environment...

shot in the dark.... try changing 'SHL' to BAT and see what happens.
 
I tried BAT it didnot work same error exit call failed.
 
Maybe this will help...

GET("SHL","-cli -cmd 'script.sh arg1 arg2'")
GET("SHL","-cli -cmd 'script.sh -ABC target_path/file '")

Note the case for CLI and CMD are lower... Make sure you use them in lower tense. I understand that Unix is case sensitive and all examples I saw had them in lowercase.

Good luck!
 
I changed the mod to 777 and run using the command -cli -cmd it worked thanks eyetry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top