问题:即使创建了日志文件,notify-send命令也没有显示通知。
内容/家庭/用户/测试
#!/bin/bash
echo 'test job, reporting...'
while :
do
notify-send 'This is a simple notification Sir'
sleep 30
done
/etc/init/myjob.conf的内容
description "test job"
start on runlevel [2345]
exec /home/sajal/test
要检查任何语法错误:
$ init-checkconf myjob.conf
为了运行上面的.config文件,我使用了:
$ sudo start myjob
查看生成的日志内容:
$ sudo gedit /var/log/upstart/myjob.log
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句