Advertisement
Guest User

Untitled

a guest
Nov 24th, 2014
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. LOG=/var/log/website_open.log
  4. DATE=`date +'%a, %e %b %T %p'`
  5.  
  6. echo "*** Website opened on [ $DATE ]***" >> $LOG
  7. echo " " >> $LOG
  8.  
  9. xdg-open http://example.com | grep -v "Created new window in existing browser session." >> $LOG
  10.  
  11. *** Website opened on [ Mon, 24 Nov 01:04:41 AM ] ***
  12.  
  13. 0 0 5 1/1 * ? * /etc/cron.daily/example_com
  14.  
  15. /tmp/crontab.CjOKO9/crontab
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement