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

-- 
ubuntu-uk mailing list
[email protected]
http://lists.ubuntu.com/mailman/listinfo/ubuntu-uk

Reply via email to