LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 03-09-2007, 12:53 AM   #16
nucklebone
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.

nuckleone
 
Old 03-09-2007, 02:43 AM   #17
magli
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.

cheers.
 
Old 02-11-2009, 03:59 PM   #18
consciouspilot
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, 06:40 PM   #19
klohmann
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!
 
  


Reply

Tags
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 03:53 AM
Automated HD backup General Linux - Hardware 3 05-11-2006 09:39 PM
mysql automated backup dkc_ace General 12 10-02-2004 09:19 AM
Automated Backup via FTP KePSuX Linux - Newbie 3 02-11-2004 09:25 AM
automated FTP backup josephswagner Linux - Software 2 06-06-2003 05:42 PM


All times are GMT -5. The time now is 09:06 PM.

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