Linked Questions

1 vote
1 answer
4k views

I know how to print the duration of the .wav file using sox at the Linux command. soxi -D input.wav So I used this syntax in python. subprocess.call(['soxi', '-D', input.wav]) But I'd like to save ...
hayeon's user avatar
  • 51
0 votes
2 answers
4k views

I am a sysadmin and have been trying to get more in to coding. I really like using python so far and have been able to do a few cool things. However, one thing I am struggling with is the ability to ...
Abraxas's user avatar
  • 361
3 votes
1 answer
6k views

Note: I have a process that writes one line to stdout ("print("hello")) and waits for raw_input. I run this process with p = subprocess.Popen, then call p.stdout.readline()....this blocks ...
user442920's user avatar
3 votes
1 answer
3k views

I have a python based tkinter script which executes some commands using subprocess module. I need to display the standard output on the GUI itself. Since I am new to tk (One week Bold :) ), I need ...
Ani's user avatar
  • 1,038
1 vote
2 answers
4k views

I expect this is really simple but I can't work this out. I am trying to write to a log file in real time the output from a DD imaging subprocess - I'm using DD v 8.25 from which you can get regular ...
fishboy25uk's user avatar
1 vote
1 answer
3k views

here is my problem: I need to execute a cmd command from python, the command is not something that executes fast, it will be running for a longer period of time. What I need is a way to #1 execute the ...
Terra's user avatar
  • 187
2 votes
2 answers
1k views

Here's my main file: import subprocess, time pipe = subprocess.PIPE popen = subprocess.Popen('pythonw -uB test_web_app.py', stdout=pipe) time.sleep(3) And here's test_web_app.py: import web class ...
Jesse Aldridge's user avatar
1 vote
3 answers
3k views

I'm calling rsync with popen and the output is not printing out continuously in my python script for my web application as it does in just normal linux. I'm trying to copy over all the files on one ...
kenedy's user avatar
  • 21
0 votes
1 answer
2k views

I am writing a code wherein I am using subprocess.Popen Command to run a script on terminal that will retrieve some results from database . I may get single result from database or more than one ...
rikki's user avatar
  • 451
1 vote
2 answers
1k views

I have a program written in Python that at some point creates a subprocess and then has to get its std output in "real time" through a file (the process takes a while and some output is needed while ...
nDeckard's user avatar
0 votes
1 answer
1k views

I'm trying to do some scripting, but one of the utilities I have returns a value to stdout, where I would like to assign it to a variable. The utility (candump) is constantly running and only prints ...
Chris's user avatar
  • 10.2k
0 votes
1 answer
2k views

I came across a problem when using subprocess.Popen. I went through the problem here. When I add the following edit to the fake_utility.py i.e add stderr=subprocess.PIPE in subprocess.Popen: #...
ashokadhikari's user avatar
1 vote
1 answer
2k views

I'd like to load cmd.exe and call a bat file with multiple parameters. All these from python. My bat file looks like: @echo off call ifortvars.bat intel64 cd %5 abaqus job=#1 user=%2 cpus=%3 ...
jpcgandre's user avatar
  • 1,515
0 votes
2 answers
2k views

I need to run 10,000 jobs on slurm (each taking 30 minutes let's say). Currently, the plan was to do it with a job array, using 250 cores in parallel, like so: sbatch --array=0-10000%250 array_script....
Marses's user avatar
  • 1,602
0 votes
1 answer
2k views

I have 2 python files. one is helloworld.py and 2nd is main.py. In main.py there is button.When i click on that button that time I want to print result of helloworld.py into text box. helloworld.py ...
Ashish Aware's user avatar

15 30 50 per page