Twitter Updates

Tuesday 24 June 2008

Screen tips

I am a big fan of screen for when working with terminals. When working with remote connections it is very handy if you require a new terminal do something and protects you against dropped connections. or if you start running a job that takes longer than expected, you can just disconnect and pick it up again later.

Just found this tip at
http://polishlinux.org/howtos/screen-tips-tricks/
Add this to ~/.screenrc
hardstatus alwayslastline
hardstatus string '%{= mK}%-Lw%{= KW}%50>%n%f* %t%{= mK}%+Lw%< %{= kG}%-=%D %d %M %Y %c:%s%{-}'

This gives a tab along the bottom of the open terminal (Screen Session).

also this line (from the same source) added to crontab
@reboot screen -S rtorrent -md /usr/bin/rtorrent

Will create new screen session (disconnected) and start the bit torrent program rtorrent.

To edit the crontab
$crontab -e

This page looks like a good crontab reference
http://mkaz.com/ref/unix_cron.html

No comments: