LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-27-2006, 04:46 PM   #1
tomolesonjr
Member
 
Registered: Mar 2006
Location: Iowa
Distribution: Suse 10.0
Posts: 70

Rep: Reputation: 15
Question using crontab to back up files


first off I'm just trying to get it to work.

http://www.scrounge.org/linux/cron.html

provided some tips.

I'm creating a simple script to append to a text file to test whether it works.

call it hello. so in the hello.cron file I have: * * * * * /root/bin/hello.sh

I type crontab hello.cron.......all things ok. but every minute it gets something about mail in the spooler.

Thanks,
Tom
 
Old 04-27-2006, 06:15 PM   #2
ataraxia
Member
 
Registered: Apr 2006
Location: Pittsburgh
Distribution: Debian Sid AMD64
Posts: 296

Rep: Reputation: 30
If a cron job produces output, it will mail it to you. If you don't want the mail, you need to make your script quiet. Maybe redirect it to /dev/null if all else fails:
Code:
* * * * * /root/bin/hello.sh 2>&1 > /dev/null
 
  


Reply



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
back up files in mandrake frayed2 Mandriva 4 04-27-2005 09:14 PM
crontab & quota files are temporary files? hamish Linux - Software 0 07-10-2004 02:09 PM
How to get back my --linux-.--- files?? dufferin Slackware 2 06-28-2004 01:30 AM
How to Back Up the Kernel and Files? Lucinda Slackware 9 05-26-2004 05:51 AM
newbie? back-up OS/files perfect20002 Linux - Software 0 06-19-2003 08:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:11 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
Open Source Consulting | Domain Registration