Note: You can pipe STDIN to apex CLI too.
Thanks, A _____________________________________ Sent with difficulty, I mean handheld ;) On 16 Dec 2016 12:02 pm, "AJAY GUPTA" <[email protected]> wrote: > Hi > > You can use the -e option to specify commands to be executed on apex cli > For example : > apex -e "list-apps" > > I had a single application running and following was the output > > apex -e "list-apps" > {"apps": [{ > "startTime": "2016-12-16 11:59:07 +0530", > "id": 1, > "name": "PiDemo", > "state": "ACCEPTED", > "trackingUrl": "http:\/\/Ajay-MacBook-Pro.local:8088\/proxy\/ > application_1481851584221_0001\/", > "finalStatus": "UNDEFINED", > "tags": [] > }]} > > > > Ajay > > On Fri, Dec 16, 2016 at 11:01 AM, Sunil Parmar <[email protected]> > wrote: > >> Is it possible to script / shell script start up and shutdown script for >> launching apex app. We're using dtcli console to launch the apps but we >> would want to create a unified scripts that checks some additional checks >> outside apex before launching the app. Similarly we would want to create >> shutdown script to allow clean shutdown. Any example or documentation helps >> ! >> >> Thanks, >> Sunil >> > >
