How to send fortune to gmail status

Based on this blog:

http://blog.thecybershadow.net/2010/05/08/setting-shared-google-talk-gmail-status-programmatically/

I made a script (gstatus-fortune.sh) to automate the gmail status change with “fortune” sentences:

/home/giovanni/mine/gstatus/gstatus.py default “$(/usr/games/fortune -s)”

and configured the crontab:

0 * * * * /home/giovanni/mine/gstatus/gstatus-fortune.sh