简体   繁体   English

我下载了stip-2.0 linux,并尝试执行“ script.sh”,但发生此错误。/bin/stipdet:1:./bin/stipdet:syntax错误:“(”意外

[英]I downloaded stip-2.0 linux, and i try to execute “script.sh” , but this error occurs ./bin/stipdet:1: ./bin/stipdet:syntax error:“(” unexpected

#!/bin/bash

for i in $(seq 1 8) 
do
    echo $i
    ./bin/stipdet -i ./BTP/video-list$i.txt -vpath ./BTP/ -fpath ./BTP/ -o ./BTP/traffic-junction-externalstip$i.txt -mode 1 -vis no
done

Looks like there are hidden characters in the script. 脚本中似乎有隐藏的字符。 May be you copied file from Windows... 可能是您从Windows复制了文件...

Try: 尝试:

dos2unix script.sh

And then try to execute again. 然后尝试再次执行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM