2016年1月8日 星期五

crontab xdotool mousemove --sync 1000 10

http://linux.vbird.org/linux_basic/0430cron.php#cron
http://tuxradar.com/content/xdotool-script-your-mouse
crontab -e
*/1 * * * * xdotool mousemove --sync 1000 10
ESC -> Shift + : -> wq
sudo rm /etc/cron.deny
sudo vi /etc/cron.allow
username... then save
type xdotoool 
$show -> $ /bin/xdotool
systemctl restart crond
sudo
[dmtsai@study ~]$ crontab -l
0 12 * * * mail -s "at 12:00" dmtsai < /home/dmtsai/.bashrc
59 23 1 5 * mail kiki < /home/dmtsai/lover.txt
*/5 * * * * /home/dmtsai/test.sh
30 16 * * 5 mail friend@his.server.name < /home/dmtsai/friend.txt

# 注意,若僅想要移除一項工作而已的話,必須要用 crontab -e 去編輯~
# 如果想要全部的工作都移除,才使用 crontab -r 喔!
[dmtsai@study ~]$ crontab -r
[dmtsai@study ~]$ crontab -l
no crontab for dmtsai

 
ls -lh /bin/grep
 
Sample outputs:
-rwxr-xr-x 1 root root 172K May 13  2012 /bin/grep
In the above output example, the 172K is the size of the file. The du command provides the same output in a more user friendly way and it hides all other details too:

沒有留言:

張貼留言

注意:只有此網誌的成員可以留言。