0
0

More than 3 years have passed since last update.

subprocess.check_call('ls -l')ではなく、subprocess.check_call('ls -l',shell=True)を指定しないと動かない

Last updated at Posted at 2019-12-31

動かない

subprocess.check_call('ls -l')

動く

subprocess.check_call('ls')
subprocess.check_call('ls -l',shell=True)

どうもコマンドのオプションを指定する際にはshell=Trueにしないと駄目らしい

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0