我有以下shell脚本:
#!/bin/bash
/usr/bin/lxterminal -e "mpv http://wdr-1live-live.icecast.wdr.de/wdr/1live/live/mp3/128/stream.mp3"当我运行它时,终端窗口会打开,但命令不会执行,也没有提示符。该窗口中唯一可见的是没有响应的光标。
为什么不执行该命令?在我的其中一个raspbians上,脚本运行得很完美,但是当我把它移到另一个raspbian上时,它就不能工作了。
发布于 2020-06-19 22:58:48
你好
(暂时不能评论)也许你忘了……
chmod +x yourshellscript.sh...because上面的命令在我基于debian的安装上有效...
cat wdr.sh && (ls -Flap wdr.sh ; ./wdr.sh)
#!/bin/bash
/usr/bin/lxterminal -e "mpv http://wdr-1live-live.icecast.wdr.de/wdr/1live/live/mp3/128/stream.mp3"
-rwxr-xr-x 1 knoppix knoppix 112 Jun 19 16:48 wdr.sh
#...and in lxterminal...
Playing: http://wdr-1live-live.icecast.wdr.de/wdr/1live/live/mp3/128/stream.mp3
(+) Audio --aid=1 (mp3 2ch 48000Hz)
AO: [alsa] 48000Hz stereo 2ch float
A: 00:00:05 / 00:00:09 (60%) Cache: 3s+111KB
File tags:
icy-title: 1LIVE Sophie Schramm und der Simone发布于 2020-06-20 23:42:26
当我使用
lxterminal -e而不是
/usr/bin/lxterminal -ehttps://stackoverflow.com/questions/62470431
复制相似问题