I have a script that works in the background. I would like to show an icon in the panel (only) if it runs; it should not show if the script is not running, just like the Dropbox icon. 

How can I achieve this? I have installed `Xubuntu 14.04`.