Linked Questions

0 votes
2 answers
270 views

I want to execute a 3 separate bash commands on 3 separate core processors of a node of a supercomputer. I have a python script that sends a bash command via os.system to the command line, however it ...
user avatar
2 votes
1 answer
272 views

Possible Duplicate: How can I run an external command asynchronously from Python? So far my bit of code WILL download the file and then play it. What I would like to do is start downloading the ...
1 vote
0 answers
196 views

So lets say that i created a while loop where the user inputs a name and it outputs his last name choice = input() if choice == "Mark": print("Zuckerberg") elif choice == "Sundar": print("...
mangafas's user avatar
1 vote
0 answers
62 views

I am new to Python, and programming in general. I am working on a Chrome-based media center, and one thing I would like it to is open Chrome in full screen automatically. Here is what I have so far. (...
Jack Horgan's user avatar
0 votes
0 answers
28 views

I want to open .bat file and then continue the code but python is waiting for the end of file so I need to close the file and then it continue. But I want to open the file and continue with the code ...
6279 votes
66 answers
5.2m views

How do I call an external command within Python as if I had typed it in a shell or command prompt?
56 votes
2 answers
162k views

Suppose I have code like this async def fetch_text() -> str: return "text " async def show_something(): something = await fetch_text() print(something) Which is fine. But then I want ...
squirrel's user avatar
  • 5,548
18 votes
2 answers
29k views

From the Wikipedia article on Polling Polling, or polled operation, in computer science, refers to actively sampling the status of an external device by a client program as a synchronous activity. ...
3 votes
2 answers
9k views

I need to run those three commands for profiling/code coverage reporting on Win32. vsperfcmd /start:coverage /output:run.coverage helloclass vsperfcmd /shutdown I can't run one command by one because ...
prosseek's user avatar
  • 193k
3 votes
3 answers
7k views

Is there a way to start and stop a process from python? I'm talking about a continues process that I stop with ctrl+z when normally running. I want to start the process, wait for some time and then ...
2 votes
6 answers
3k views

I'm writing a script in Python to ssh into a few computers (about ten) and have them start rendering 3d images from Blender. It works fine except the next computers's renders won't start until the ...
3 votes
2 answers
3k views

I have created an app in a django project. This app has four models. I can add/modify/delete from admin site for all four models. But for one of the four models (say - ModelXYZ), I need to add a ...
2 votes
1 answer
2k views

I have adapted the "async def _read_stream (stream, cb):" code described in How can I run an external command asynchronously from Python? by adding the update of a QTextEdit widget but the ...
pinchoonet's user avatar
0 votes
1 answer
1k views

I have the following code: #!/usr/bin/env python import os os.system("wget -directory-prefix=myDir/1 URL1") os.system("wget -directory-prefix=myDir/2 URL2") os.system("wget -directory-prefix=...
0 votes
2 answers
979 views

I want to pass the two variables to another python file, i dont want to start it as a sub process. I want the two processes to run apart as file1 has alot of more calculations to do and cannot wait ...

15 30 50 per page
1
2 3