ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
So I have a python script (which I know nothing about python) that runs a third party binary called "report". What I would like to do is add a perl script I wrote to be executed at the end of this python script. My perl script runs the cpulimit command on the PID that's created from running the python script. Any python users know how I would go about doing this?
Well I am not sure why you would want to mix yet another language into the script as I am sure python can manage the task perl has performed.
That being said, find the line where python calls the binary and repeat for your perl script sounds like an obvious path.
Grail...I had to test the script I wrote to make sure it did what I thought it was going to do. So I figured since that worked, and I don't know python, that I could just try to incorporate my script into this one.
What specifically have you tried and found not working? Not just "I tried using os.system" but put in the specific call(s) you attempted. But first, go through the first 10-20 google results first and then post here if those were not working; if you find a solution, post that here and mark the thread as "solved" so others may learn.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.