LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   difference between (https://www.linuxquestions.org/questions/linux-newbie-8/difference-between-505193/)

user52 11-27-2006 06:01 AM

difference between
 
hello all

what is difference between "CRON" or "CRONTAB".

plz. reply...

thanx
Taj

musicman_ace 11-27-2006 06:15 AM

When I say "Cron", I would be refering to the daemon. There are many cron daemons: vixie-cron, dcron, fcron.

The crontab is what you edit to add jobs that your cron daemon would execute.

user52 11-27-2006 06:32 AM

hello sir

sir i have another question...
i am using oracle database and linux operating system. right now i have to take bkp on linux. ( i am good on windows but not on linux so i want ur help)

i have one cmd from Oracle like

exp orion/orion owner=orion file=bkp.dmp log=bkp.log

sir i want to above cmd schedule on daily basis. through crontab utilities.

so first i create shell script
if yes
sir how can plz. can you give me example.

and then after i will use crontab to run .sh script.

again how can use cron tab
so i need to connect as root user or can i used normal user..


sir plz. reply

taj

musicman_ace 11-27-2006 07:14 AM

A standard bash shell script will look like this:

Code:

!/bin/bash

command to execute

I've never used oracle, but if the command you specified in your post works from your linux command prompt, than all you need is the !/bin/bash line followed by your command.

Once you've done that, there are many ways of editting the different cron daemons scheduled tasks. most people seem to prefer the crontab -e method.

chrism01 11-27-2006 05:24 PM

Actually, it's

#!/bin/bash

note the preceding '#', and it must be the first line in the script file.
As a rule, cron (the daemon prog) has a a very restricted list of programs it can see by default (ie the $PATH environment variable), so always specify the full path to any programs you want to run in the cron environment.
Try this tutorial: http://www.linuxforums.org/forum/lin...scheduler.html


All times are GMT -5. The time now is 01:32 AM.