tag:blogger.com,1999:blog-5780206530047749771.post763093849573304748..comments2023-10-26T03:37:38.593-07:00Comments on Life, the Universe and Math: A bash script I wrote and loveJ. Ian Johnsonhttp://www.blogger.com/profile/02510605633293210260noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-5780206530047749771.post-35525429277946781752009-09-18T05:34:42.009-07:002009-09-18T05:34:42.009-07:00If you want a way to run something without it clut...If you want a way to run something without it cluttering your current terminal you may be interested in the screen command. It is kind of like a bg/fg or nohup on steriods, allowing multiple windows within one terminal, and a detach reattach capability.<br /><br />screen -q <br /><br />gets you started. You can kill that terminal and <br /><br />screen -ls <br /><br />gets back all your screen windows.<br /><br />For what you are describing you can create aliases that start stuff in their own screen windows such as:<br /><br /><br /># cat `which stv`<br />#/usr/bin/ksh<br />cd<br />screen -t $1 ctsetview -cdtop $1<br /><br /><br />(something I use at work). I've been meaning to write a blog post on this great tool since I've been blogging about perl and shell stuff as well as my math and physics play... I managed to go 8 years working with Unix every day without knowing about screen, and can't imagine life without it anymore!Peeter Joothttps://www.blogger.com/profile/13747647271625793131noreply@blogger.com