1
ローカルコンピュータからサーバーにファイルを送信しようとしました。私が見る標準エラー出力でサブプロセスのどこに間違いがありますか?
t= subprocess.Popen(['curl', '-T', '/home/test/Downloads/my_own.xml',
'http://far_away_server/'], stdout = subprocess.PIPE, stderr = subprocess.PIPE)
:
usage: curl [file] [URL]
[file] [HTTP] fetches a file from an 'http' URL
[file] [HTTPS] fetches a file from an 'https' URL
[file] [FTP] fetches a file from a 'ftp' URL
どこに間違いはありますか?
あなたが – Dmitry
@DmitryFrolovを実行し、正確にコマンドを入力してください、私はbashで書いた: '>>>インポートサブプロセス >>>トン= subprocess.Popen([ 'カール'、' -T '、' /home/test/Downloads/my_own.xml '、 ' http:// far_away_server/']、stdout = subprocess.PIPE、stderr = subprocess.PIPE) >>> out、err = t.communicate() >>> print err' – flow
私はエラーがあります。curl: '(6)ホストを解決できませんでした:far_away_server'、' curl --version'結果を返してください。 – Dmitry