我正在使用 Windows 笔记本电脑和树莓派开发电视记分牌应用程序。 通过Putty进行套接字连接。我使用WinSCP将脚本timer.sh放入树莓派中。
但是当我运行命令时:
./run_timer.sh
错误提示:
pi@raspberrypi ~ $ ./run_timer.sh
-bash: ./run_timer.sh: No such file or directory
timer.sh 带有命令:
#!/bin/sh
java -jar /home/pi/ScoreBoard_app/Timer/Timer.jar
我错过了什么步骤吗?
最佳答案
错误消息表明脚本 run_time.sh 丢失。我认为你的脚本的名称应该是timer.sh,并且脚本的内容没有任何内容。确保当前目录中有run_timer.sh。
希望有帮助。
关于java - ./run_timer.sh : no such file or directory,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20782657/