Running perl scripts in background of unix terminal
May 7th, 2009Script getting too long to load and run? Too many outputs to see?
Try the following;
nohup perl <filename>.pl &
Â
This will create a file called nohup.out in the existing directory and & means it runs in the background(i.e. you can close the terminal safely and it still runs)
Â
Best part is.. its allows the script to run super super fast.. =) i remembered i tried running this script that gave about 500k mysql entry and output lots of info on my screen.. it took a few hours.. when i did this command… it took like less than 10mins.. =)
Â
and im done with my exams.. Time to build up my homepage..
Â
Stay tuned.. =)
