On Mon July 6 2009, Christoph Höger wrote: > since I sync my mail with the experimental gnome ui of offlineimap, I > encounter a small problem: > How do I tell cron to only invoke the job when I am logged in under > gnome only? Since consolekit (correct me if I am wrong on that) does not > Do you have any advice on that? Does such a software already exist? You can probably replace "till" with your username and then use this in your crontab: ps u -C gnome-session | egrep -q "^till " && offlineimap Regards Till
Description: This is a digitally signed message part.