我以文件夹的形式运行脚本,但是老是不成功... 重启 cron 也不让重启... kill后守护进程会自动运行...
代码: 全选
1 # /etc/crontab: system-wide crontab
2 # Unlike any other crontab you don't have to run the `crontab'
3 # command to install the new version when you edit this file
4 # and files in /etc/cron.d. These files also have username fields,
5 # that none of the other crontabs do.
6
7 SHELL=/bin/sh
8 PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
9
10
11
12 # m h dom mon dow user command
13 17 * * * * root cd / && run-parts --report /etc/cron.hourly
14 25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
15 47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
16 52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
17
18
19 1 * * * * root test -x /home/xyz/develop/linux/ubuntu/crontab || ( cd / && run-parts --report /home/xyz/develop/linux/ubuntu/crontab )
代码: 全选
xyz@gentoo:~/develop/linux/ubuntu$ ls
crontab cron.test
xyz@gentoo:~/develop/linux/ubuntu$ cat crontab/PingOutput.sh
#!/bin/sh
ping -c 1 127.0.0.1 >> /home/xyz/develop/linux/ubuntu/cron.test
xyz@gentoo:~/develop/linux/ubuntu$
再说一个问题吧...
用 14.04 也有一段时间了, 遇到了个小问题. 我发现 桌面的窗口长时间不动的话 整个 窗口都会变黑, 只有最大化或调整下窗口的大小就会显示出原来的内容.
不知道大家也是不是和我一样, 怎么解决呢?
我没有用compiz开特效
环境: Linux gentoo 3.13.0-27-generic #50-Ubuntu SMP Thu May 15 18:06:16 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
X Window: unity, 14.04默认
显卡驱动: nvidia 331 专有驱动 tested