我在Linux寫了一個bash script , a
如下
#!\bin\bashset -x
各位大大,不好意思呢!上面字打錯啦... :oops:
scripts Eth0如下
#!/bin/bash ==>這行出錯
set -x
cat Eth0 > eth0dump
date >> eth0dump
tcpdump -i eth0 -c 500 -e -s 0 -x
#./Eth0
+ ./Eth0
bash: ./Eth0: bad interpreter: No such file or directory
我在別台Linux執行都沒有問題,在這一台跑bash script,
#!/bin/bash,這行命令不被系統接受,
該檔案/bin/bash也有存在,Why? :roll: