Chris Beauchamp chris at etcp.co.uk
Thu Oct 27 06:25:14 CDT 2005


Magnus Therning wrote:

> 
> What you could do is make sure it's only done once, i.e. for the first
> terminal that's started. Sticking something like this in ~/.bashrc might
> do:
> 
>  [[ -f /tmp/todo_done ]] || ( cat ~/TODO; touch /tmp/todo_done )

Of course, this will only ever display it once, and for only one user...
a refinement maybe:


[[ -f /tmp/todo_done$USER ]] || ( cat ~/TODO; touch /tmp/todo_done$USER )

and in /etc/crontab

0 6 * * * root rm /tmp/todo_done*

to delete all the flags at 6am

Chris



More information about the ubuntu-uk mailing list