Exercise while being sick

Just wanted to get others opinions on exercising while being sick. I know rest is the best thing when you are sick (flu/cold) but I have been fighting this cold for a few weeks now and I just want to get to the gym but feel tired and unmotivated. Any feedback is helpful.

Thanks!