Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 03-08-2007, 11:53 PM   #16
LQ Newbie
Registered: Mar 2007
Posts: 5

Rep: Reputation: 0

i just had the same problem.

i searced google "using cron to run a script ubuntu" and found this website.

i also, did not have a mail program installed and had to install mailx. as soon as i did, my script (very much the same as yours, ie. using tar for backup) started working with cron. i have no clue why this is the case, but it worked 5 minutes after i installed mailx (i set cron to run 5 minutes after i installed mailx to test).

hope this helps someone else.

Old 03-09-2007, 01:43 AM   #17
LQ Newbie
Registered: Nov 2005
Location: South Tirol, Italy
Distribution: gentoo/ubuntu
Posts: 19

Original Poster
Rep: Reputation: 0
Wow. That's just too much of a coincidence. Sounds like there may be a strange obscure bug with cron on Ubuntu, which mailx magically solves.

Thanks for reporting that - makes me feel better to know that it wasn't all just my imagination.

Old 02-11-2009, 02:59 PM   #18
LQ Newbie
Registered: Feb 2009
Posts: 1

Rep: Reputation: 1
I also had this problem, and I can't believe mailx solved it!

I was beating my head up against the wall trying to figure this one out. And, after a bit of web searching, I came up on this page.

I figured, what do I have to lose?

After installing mailx, the tar backup script I wrote that would run perfectly fine manually but would never run properly with a cron worked beautifully. What a redicilous and obscure bug!
Old 07-14-2009, 05:40 PM   #19
LQ Newbie
Registered: Feb 2006
Location: New Hapshire
Distribution: Ubuntu, Xandros, Debian
Posts: 4

Rep: Reputation: 0
Thank you so much! Exact same problem with crontab, and adding mailx solved it immediately. I'd been trying to sort this out for a month, to no avail. If not for this forum, I'd likely be at it for another month, at least. What a bizarre fix -- but thanks nonetheless. I wouldn't have come up with it myself!


backup, cron, tar

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
BackUp & Restore with TAR (.tar / .tar.gz / .tar.bz2 / tar.Z) asgarcymed Linux - General 5 12-31-2006 02:53 AM
Automated HD backup General Linux - Hardware 3 05-11-2006 08:39 PM
mysql automated backup dkc_ace General 12 10-02-2004 08:19 AM
Automated Backup via FTP KePSuX Linux - Newbie 3 02-11-2004 08:25 AM
automated FTP backup josephswagner Linux - Software 2 06-06-2003 04:42 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:58 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration