python的子进程(调用或popen)在终端中工作,但在Gnome Schedule User Guide V2.2中不工作

python的子进程(调用或popen)在终端中工作,但在Gnome Schedule User Guide V2.2中不工作,python,ubuntu,subprocess,wget,scheduler,Python,Ubuntu,Subprocess,Wget,Scheduler,我试图从python(2.75)脚本调用wget: 它可以在IDE(eclipse)中正常工作,也可以在终端中正常工作,但是当我尝试从Gnome Schedule User Guide V2.2运行它时,我得到以下结果: --2013-08-16 11:27:35-- https://192.168.0.1/003/ Connecting to 192.168.0.1:443... connected. ERROR: cannot verify 192.168.0.1's certificat

我试图从python(2.75)脚本调用wget:

它可以在IDE(eclipse)中正常工作,也可以在终端中正常工作,但是当我尝试从Gnome Schedule User Guide V2.2运行它时,我得到以下结果:

--2013-08-16 11:27:35--  https://192.168.0.1/003/
Connecting to 192.168.0.1:443... connected.
ERROR: cannot verify 192.168.0.1's certificate, issued by `blabla': Self-signed certificate encountered.
ERROR: no certificate subject alternative name matches requested host name `192.168.0.1'.
To connect to 192.168.0.1 insecurely, use `--no-check-certificate'.
--2013-08-16 11:27:37--  http://--tries=5/
Resolving --tries=5 (--tries=5)... failed: Name or service not known.
wget: unable to resolve host address `--tries=5'
--2013-08-16 11:27:37--  http://--http-user=foo/
Resolving --http-user=foo (--http-user=foo)... failed: Name or service not known.
wget: unable to resolve host address `--http-user=foo'
--2013-08-16 11:27:37--  http://--http-passwd=bar/
Resolving --http-passwd=bar (--http-passwd=bar)... failed: Name or service not known.
wget: unable to resolve host address `--http-passwd=bar'
--2013-08-16 11:27:37--  http://--auth-no-challenge/
Resolving --auth-no-challenge (--auth-no-challenge)... failed: Name or service not known.
wget: unable to resolve host address `--auth-no-challenge'
--2013-08-16 11:27:37--  http://--no-check-certificate/
Resolving --no-check-certificate (--no-check-certificate)... failed: Name or service not known.
wget: unable to resolve host address `--no-check-certificate'
--2013-08-16 11:27:37--  http://--output-document=temp/page.html
Resolving --output-document=temp (--output-document=temp)... failed: Name or service not known.
wget: unable to resolve host address `--output-document=temp'
…因此,它似乎没有使用命令“wget arg1 arg2 arg3…”,而是尝试运行: “wget arg1” “wget arg2” “wget arg3”

当从调度程序运行时,有什么线索可以产生不同的结果吗

我在计划程序中使用的命令是: “python/home/python/Download/Download.py”


谢谢

我自己解决了这个问题,将第二个参数移到了最后一个位置:

cmd = ['wget', '--tries=5', '--http-user=foo', '--http-passwd=bar', '--auth-no-challenge', '--no-check-certificate', '--output-document=temp/page.html', 'https://192.168.0.1/003/']
它现在可以工作了,但我仍然想知道为什么在终端或IDE中它工作得很好,而不是从调度程序运行时

cmd = ['wget', '--tries=5', '--http-user=foo', '--http-passwd=bar', '--auth-no-challenge', '--no-check-certificate', '--output-document=temp/page.html', 'https://192.168.0.1/003/']