So recently I have been in an engaging prank war with a fellow colleague and to by kind I should say he won! bravo sir, I concede.

However one prank that I recently did involved the good old use of using terminal to open a website terminal command. The key part of this is ensuring the website opens often and choosing a particular website to open :) Also this is only for Mac/linux based computers or laptops.

Well Enough of the intro lets get to it:

[php] env EDITOR=vim crontab -e [/php]

Now you can use nano but I prefer vim, it is my editor of choice. Next press the i button on your keyboard (insert mode). Then paste in this command

[php] 30 * * * * /usr/bin/open -a "/Applications/Safari.app" 'http://google.com/' [/php]

Press the esc to exit insert mode and then :w to write the file and :q which will exit the file and editor. You should see the line: crontab: installing new crontab which will confirm the magic has been installed.

Quick things to note if you wish to change things, where it says http://google.com/ can be changed to any website you want and the number 30 is what makes it open every 30 minutes. Change to any number between 1-60.

Someone leaves their computer open, try this fun as it unwittingly opens up every half hour

Monthly Archives: March 2015

Using terminal to open a website terminal command

So recently I have been in an engaging prank war with a fellow colleague and to by kind I should say he won! bravo sir, I concede. However one prank that I recently did involved the good old use of using terminal to open a website terminal command. The key part of this is ensuring

Read more