Re: Execute custom Python Scripts (469 Views)
Valued Contributor
Posts: 115
Registered: ‎03-02-2010
Message 1 of 2 (548 Views)

Execute custom Python Scripts



I am looking at using more and more of the python libraries that come packaged with the agent.

Right now, the only way I can really execute python scripts however is by packaging them up in a zip file, then downloading them onto the server, then executing them using a bat or sh file.


While not really a bother, was wondering if there  is another way.



Trusted Contributor
Posts: 44
Registered: ‎05-18-2012
Message 2 of 2 (469 Views)

Re: Execute custom Python Scripts

Hello Dimiter,



One cool way I discovered recently is that you can package a script into a .cmd using something like py2cmd. Other than that you can also execute scripts via the global shell (see ttlg) or you can use the UAPI to start a script execution (the latter, limited to the types that are available). If you are going to be deploying a whole application with many python files then I guess the zip method would be the best.






Filippos Chalvatzoglou
Server Automation & BSA Essentials Support
HP Software

If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.

Help us keep these forums active!
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.