subprocess tag

10 questions


1 answers
80 views
0
An error occurs when passing a string to subprocess.Poven using the stdin factor.

import subprocessfrom cStringIO import StringIOsubprocess.Popen(['grep','f'],stdout=subprocess.PIPE,stdin=StringIO('one\ntwo\nthree\nfour\nfive\nsix\n')).communicate()[0]Traceback (most recent call la...

1 years ago

1 answers
94 views
0
How to run Python Unix commands...

Hi, how are you? I'm Parin, who recently introduced Python.Result value tldextract [result] | sort | uniq | grep.com | tr -d'',Like this twitter com weheartit com www facebook comwww pinterest comwww ...


1 answers
78 views
0
Using nodejs child_process spawn

I want to run the following code in nodejs.$ gcc test.c$ $ ./a.out < inputfile.txtSo I wrote the following code.var gpp = spawn('g++', ['test.cpp']);var run = spawn('./a.out', ['< input.txt']);v...

1 years ago

1 answers
67 views
0
Executing External Commands with Python

How do I run an external command that I write from a unix shell or window command prompt?


1 answers
72 views
0
When running with Python subprocess. There is an error because only the local library is loaded.

I made an anaconda python 2.7 virtual environment and am interpreting it.As a subprocess module curl process method a.If you run the py file... I didn't write an anaconda environment library, but I co...

1 years ago

1 answers
90 views
0
I have a question about using Python subprocess.

As far as I know, the subprocess runs another py file, but when I actually run A1.py, only the B1.py file opens and Hello does not print out on A1's screen. I went to the console and tried putting pyt...

1 years ago

1 answers
64 views
0
There is an error in the import 도와 Please help me!

Input Code from scapy.all import*Error File sniffer0_with_scapy.py, line 1, in from scapy.all import* File C:\python\lib\site-packages\scapy\all.py, line 16, in from .arch import * File C:\python\lib...

1 years ago

1 answers
56 views
0
I just asked a question, and I'm going to change the question. In the subprocess----

How do I run the following cmd command with subprocess.check_output?cd C:/Users/Administrator/Desktop/filesdir /b | find /i copy

1 years ago

1 answers
59 views
0
How to run subprocess from Linux os to Python

import subprocesssubprocess.run(['ls' , '-al'], shell = true)I'm working on turning other external programs in Python using subprocess.The external program I want to run is a device simulation program...

1 years ago

1 answers
102 views
0
Developing process check and execution program in ubuntulinux 18.04 environment. (python3)

About processes running in ubuntulinux 18.04 environmentWe are developing a program that checks the execution and termination status of the process and allows the process to be re-executed if it is te...


© 2024 OneMinuteCode. All rights reserved.