有没有办法可以通过bash脚本触发tree.setCellRenderer(customIconRenderer);
命令并继续执行bash脚本中的下一个命令而无需等待wget
的响应?我正在执行一个命令,该命令应该花费大量时间并且不希望wget保持响应,也不会在超时超时限制后重新触发它
答案 0 :(得分:3)
你应该使用--background
选项,因为它转到后台并将输出保存到日志中
--background
Go to background immediately after startup. If no output file is specified via the -o, output is redirected to wget-log
示例:
$ wget http://cdimage.ubuntu.com/ubuntu-server/daily/current/wily-server-ppc64el.iso --background
Continuing in background, pid 79783.
Output will be written to ‘wget-log’.
$ cat wget-log
--2015-05-12 11:21:35-- http://cdimage.ubuntu.com/ubuntu-server/daily/current/wily-server-ppc64el.iso
Resolving cdimage.ubuntu.com (cdimage.ubuntu.com)... 91.189.92.164, 2001:67c:1360:8c01::1f
Connecting to cdimage.ubuntu.com (cdimage.ubuntu.com)|91.189.92.164|:80... connected.
....