dje*_*lin 3 bash shell jobs watch
试着开始watch jobs工作.这很棘手,因为jobs报告当前shell拥有的作业,并watch创建另一个shell.因此我想运行. watch jobs或source watch jobs,但我收到此错误:
-bash: source: /usr/bin/watch: cannot execute binary file
Run Code Online (Sandbox Code Playgroud)
这是输出file /usr/bin/watch:
/usr/bin/watch: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, BuildID[sha1]=0xe207fd209faf781a58f5f30922c99da759bd3953, stripped
Run Code Online (Sandbox Code Playgroud)
source在这种情况下如何调试?
您只能是source脚本,而不是可执行文件.尝试:
while true; do clear; jobs; sleep 2; done
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1237 次 |
| 最近记录: |