05-08-2014
23,310,
4,623
Join Date: Aug 2005
Last Activity: 7 July 2020, 11:47 AM EDT
Location: Saskatchewan
Posts: 23,310
Thanks Given: 1,331
Thanked 4,623 Times in 4,217 Posts
I'm guessing cron is using a different shell than you login with; when you login, it understands unalias, when cron fires off, it does not.
What shell are you using? Perhaps you can use a file more specific than ~/.profile so cron doesn't load it too.