lsmbox and watch

geek All of a sudden, my lsmbox installation decided to stop working in curses mode. I hadn't had time to investigate the problem and find a clean solution, but this was a good opportunity to discover watch.

Basically, watch does what the curses mode of lsmbox did: run a command every n seconds. So i just added the following alias in my .bashrc file:

alias mymail='watch -t -n 300 lsmbox -n -s -S -t /home/adotti/Mail/'

and I got the handy list of mailboxes with unread messages back.

Filed under geek tools unix

glider [ minitrack ] ikiwiki Creative Commons VIM powered