LinuxQuestions.org
Visit Jeremy's Blog.
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 11-30-2006, 08:54 AM   #1
user52
Member
 
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
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

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

Last edited by reddazz; 11-30-2006 at 09:07 AM.
 
Old 11-30-2006, 09:52 AM   #3
user52
Member
 
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
user52
Member
 
Registered: Nov 2006
Posts: 41

Original Poster
Rep: Reputation: 15
i have one shell.sh like
#!/bin/bash
exp ...................( exp is oracle utilites for export data)
1. exp command not found
or
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
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,005
Blog Entries: 11

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


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

Rep: Reputation: 63
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.
 
  


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
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


All times are GMT -5. The time now is 02:47 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration