LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 06-25-2002, 01:58 AM   #1
blown99GT
LQ Newbie
 
Registered: Jun 2002
Posts: 2

Rep: Reputation: 0
cron and tar files


I am relatively new to Linux but I like the challenge of building a knowledge base in something that is different and challenging to grasp. My problem is that my instructor in school does not exactly teach or instuct much. I need to be taught the basics first and shown.I am having a problem trying to use cron to create a tar file of another file five minutes after i type it in. Could you please show me how to do this or give me something similar to give me a foundation for learning this cron. Thank you.
 
Old 06-25-2002, 05:10 AM   #2
Noerr
Member
 
Registered: May 2002
Location: Dalec, HU
Distribution: Redhat 7.3
Posts: 696

Rep: Reputation: 30
do
man crontab
man tar
man vi
read some docs firs, and you'll get everything explained from basics
...
I'm not sure what exactly are you trying to but you need to edit crontab similar to this
crontab -e Username

5,0 * * * * /home/tarscript > /dev/null 2>&1

and then edit tarscript like this

tar cvfz /home/yourtaredfiles.tar.gz /home/yourdir/
 
  


Reply


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
a tough question 4 u, problem in extracting tar & tar.gz files p_garg Linux - General 5 11-08-2010 11:02 AM
how to install .tar.bz and src.rpms and tar.gz files gadekishore Linux - Software 1 10-12-2005 08:09 PM
cron jobs - tar scp in one line? bkeating Linux - Software 1 11-04-2003 03:49 PM
cant install .bin files, tar.gz files or anyother format!!! madskillz Linux - Newbie 4 10-05-2003 10:28 AM
Building RPM files from TAR files parle Linux - Software 3 05-05-2002 11:02 PM


All times are GMT -5. The time now is 12:45 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration