Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 TC shell 中有一个脚本,由于某种原因它不起作用。
谁能指出同样的问题
#!/usr/bin/tcsh while true do if ls /sample/test3 >& /dev/null ; then /sample/app_code/run/initiateLoad.sh ; endif sleep 1800 done
路径 /sample/test3 包含文件,因此 if 条件应该已经成功并且应该已经启动了 shell 脚本,但它没有发生。