【发布时间】:2017-07-15 21:12:12
【问题描述】:
您好,我正在使用此代码从 bash 脚本在 Linux 上上传文件:
curl -F aok=2 -F Name='azko' -F dir="@path_to_file;filename=zou.odp"
-F "tag=1234" -F "OK=2" -F ecoTime=1 -F
-F ckx=no "http://blabla"
但是我收到的错误:
curl: no URL specified!
curl: try 'curl --help' or 'curl --manual' for more information
./up.sh: line 2: -F: command not found
./up.sh: line 3: -F: command not found
我安装了 curl 7.47.0。
到目前为止,我尝试将 \ 放在行尾,但错误仍然不断出现。我错过了什么?
当我直接复制这段代码并将 \ 放置到终端时它可以工作,但这次给出了另一种错误
curl: (43) A libcurl function was given a bad argument
我猜这是目录问题?
【问题讨论】: