小编Sig*_*Sig的帖子

存在时没有这样的文件

这怎么可能?

bash: /usr/local/phantomjs/bin/phantomjs: No such file or directory
bash-4.3# cd /usr/local/phantomjs/bin
bash-4.3# ls
phantomjs
bash-4.3#
Run Code Online (Sandbox Code Playgroud)

内容/usr/local/phantomjs/binphantomjs文件,但是当我尝试执行它时,它看起来不存在。

仅供参考,我使用的是 Alpine linux 3.3

更新1

bash-4.3# ls -lF /usr/local/phantomjs/bin/phantomjs
-rwxr-xr-x    1 root     root      67932064 Jan 25  2016 /usr/local/phantomjs/bin/phantomjs*
bash-4.3# lf -lF /usr/local/phantomjs/bin
bash: lf: command not found
bash-4.3# ls -lF /usr/local/phantomjs/bin
total 66340
-rwxr-xr-x    1 root     root      67932064 Jan 25  2016 phantomjs*
Run Code Online (Sandbox Code Playgroud)

更新2

bash-4.3# file /usr/local/phantomjs/bin/phantomjs
bash: file: command not found
bash-4.3# head -n1 /usr/local/phantomjs/bin/phantomjs
ELF>xvA@`?
Q?t/lib64/ld-linux-x86-64.so.2GNUGNU????!?`?L`?L^|????????h?TT@T@DD`??`?L`?P?tddB?dB?dB??g
Run Code Online (Sandbox Code Playgroud)

更新3

bash-4.3# echo …
Run Code Online (Sandbox Code Playgroud)

alpine-linux

16
推荐指数
1
解决办法
1万
查看次数

Cron 每分钟只运行一次

我试图每分钟运行一个脚本(在运行 Ubuntu 16.04 的 Docker 容器上)。

/etc/echo.sh简单地echo单词“喜”

cat /etc/crontab
* * * * *  root /etc/echo.sh > /var/log/cron.log 2>&1


/etc/init.d/cron reload
 * Reloading configuration files for periodic command scheduler cron     [ OK ]

tail -f /var/log/cron.log
hi
Run Code Online (Sandbox Code Playgroud)

打印“hi”一次后,没有任何反应。

任何想法为什么?

linux cron crontab ubuntu

16
推荐指数
1
解决办法
2654
查看次数

标签 统计

alpine-linux ×1

cron ×1

crontab ×1

linux ×1

ubuntu ×1