Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 11-30-2006, 08:54 AM   #1
Registered: Nov 2006
Posts: 41

Rep: Reputation: 15
crontab plz help

sir i schedule my job.. through cron tab.. but i am recived error..

first my cron tab entry like

05 * * * * cmd

but it in not run every five minus it will run every one hour why ?

plz reply urgent plz.
Old 11-30-2006, 09:05 AM   #2
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 76
Well, that will definitely run at 5 minutes past once an hour. Try the following
0-59/5 * * * * cmd
*/5 * * * * cmd

Last edited by reddazz; 11-30-2006 at 09:07 AM.
Old 11-30-2006, 09:52 AM   #3
Registered: Nov 2006
Posts: 41

Original Poster
Rep: Reputation: 15
thank you very much sir for ur reply...
i have another question .plz. solve....
Old 11-30-2006, 11:45 AM   #4
Registered: Nov 2006
Posts: 41

Original Poster
Rep: Reputation: 15
i have one like
exp ...................( exp is oracle utilites for export data)
1. exp command not found
when i used ./exp ( bcoz on bin folder of oracle )

2. ./exp no such file or directory exists
but sir when schedule above script i will give me error.\

how can i solve plz. help
Old 11-30-2006, 12:07 PM   #5
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914
By using cd /path/to/oracle/exp instead ...

Old 11-30-2006, 12:14 PM   #6
Senior Member
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
When a job is run from cron, it gets a very naked environment. The oracle tools are [usually] not installed in the PATH which cron provides. I don't know what else oracle strictly requires for it's tools to work, but there are probably quite a few other environment variables you will need to set.

See this thread for a discussion of how best to approach setting he environment for cron jobs.


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
PLZ, PLZ help - need some info kevmif Linux - General 9 12-17-2007 07:12 AM
plz plz help me regarding route mapping nedian123 Programming 1 07-13-2004 09:17 AM
plz plz solve my route mapping problem nedian123 Linux - Networking 1 07-12-2004 10:41 PM
system-wide crontab in /etc/crontab ner Linux - General 2 11-18-2003 01:35 PM
redhat problems plz plz help sap666 Linux - Newbie 5 07-30-2003 11:57 AM > Forums > Linux Forums > Linux - Newbie

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