Re: Execute custom Python Scripts (151 Views)
Reply
Valued Contributor
Dimiter Todorov
Posts: 100
Registered: ‎03-02-2010
Message 1 of 2 (230 Views)

Execute custom Python Scripts

Hi,

 

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.

 

D

Please use plain text.
Trusted Contributor
filippos_c
Posts: 44
Registered: ‎05-18-2012
Message 2 of 2 (151 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.

 

 

Regards,

Filippos

 

--
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!
Please use plain text.
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