exeuting command in background
Posted
by tazim
on Stack Overflow
See other posts from Stack Overflow
or by tazim
Published on 2010-06-16T10:32:49Z
Indexed on
2010/06/16
10:42 UTC
Read the original article
Hit count: 195
Hi,
Trying to execute shell command in background using pythons commands module
>>>import commands
>>>output = commands.getstatusoutput("find / > tmp.txt &")
sh: Syntax error: ";" unexpected
Can anyone explain what is wrong with the syntax ? How should it be executed then ?
Tazim.
© Stack Overflow or respective owner