- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- cronjob is not running
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2008 10:30 PM
08-28-2008 10:30 PM
cronjob is not running
I want to schedule cronjobs for backup scripts.I schedule it but it is not running.I have cron.deny empty.
- Tags:
- cron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2008 11:10 PM
08-28-2008 11:10 PM
Re: cronjob is not running
how r u adding script to cron here?
what is there is cron.allow file ?
you need to add user id in cron.allow first
switch to that user
set editor to vi (export EDITOR=vi)
run crontab -e
update/save and close
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2008 11:15 PM
08-28-2008 11:15 PM
Re: cronjob is not running
if cron.allow exists then you better add userid into this file using vi
also check if cron process is active
ps -ef|grep cron |grep -v grep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2008 11:24 PM
08-28-2008 11:24 PM
Re: cronjob is not running
if your cronn.deny is empty and cron.allow is does not exist, In this
case, all users of the system are granted cron access.so be careful of this situation.
>>.I schedule it but it is not running
try stopping the cron damaen and then start it again,
/usr/sbin/cron stop
/usr/sbin/cron start
check then by ps -ef|grep con
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2008 11:29 PM
08-28-2008 11:29 PM
Re: cronjob is not running
i am attaching a file for various options and combination for cron.allow and cron.deny. Go thru it and check your file according to that ..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2008 12:16 AM
08-29-2008 12:16 AM
Re: cronjob is not running
What u have answered the same problem i have but usr/sbin/cron start is not available.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2008 02:57 AM
08-29-2008 02:57 AM
Re: cronjob is not running
As documented in cron(1M), that should be: /sbin/init.d/cron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2008 03:01 AM
08-29-2008 03:01 AM
Re: cronjob is not running
ps -ef | grep cron
/sbin/init.d/cron status
/sbin/init.d/cron stop
/sbin/init.d/cron start
Check for onwer of the cron job in cron.allow file
You can edit crontab
crontab -e
Thanks
SKR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2008 03:01 AM
08-29-2008 03:01 AM
Re: cronjob is not running
In sbin /init.d is not available.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2008 03:19 AM
08-29-2008 03:19 AM
Re: cronjob is not running
What does this show:
ll /sbin/init.d/cron
ls /sbin/init.d/ | wc
This file is part of:
OS-Core.UX-CORE: /sbin/init.d/cron
PHCO_32371.UX-CORE: /sbin/init.d/cron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2008 05:06 AM
08-29-2008 05:06 AM
Re: cronjob is not running
Do you have anything in /etc/init.d perhaps?
# ls -l /etc/init.d/cron*
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2008 05:46 AM
08-29-2008 05:46 AM
Re: cronjob is not running
i have /etc/init.d/crond
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2008 05:54 AM
08-29-2008 05:54 AM
Re: cronjob is not running
You are either on some foreign devil OS, or on 9.x?
- Tags:
- foreign devil tools
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2008 06:47 AM
08-29-2008 06:47 AM
Re: cronjob is not running
# /etc/init.d/crond start
If it says something about already started, then try:
# /etc/init.d/crond stop
# ps -ef |grep cron
If there are still cron processes, kill them.
# /etc/init.d/crond start
If this happens to be a LINUX server of some variety, then you can try:
# rccrond start
or if cron is already running
# rccrond restart
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2008 06:50 AM
08-29-2008 06:50 AM
Re: cronjob is not running
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2008 07:05 AM
08-29-2008 07:05 AM
Re: cronjob is not running
Since you didn't mention that to start with everyone here kind of assumed it was HP-UX, since your question was posted in the HP-UX forum.
Since it is Linux, see my post above and see if any of it works.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2008 07:09 AM
08-29-2008 07:09 AM
Re: cronjob is not running
pls tell me in stepwise.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2008 07:13 AM
08-29-2008 07:13 AM
Re: cronjob is not running
WHAT is saying "wrong command"? Can you cut-and-paste the EXACT commands and errors you are getting?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2008 03:43 PM
08-29-2008 03:43 PM
Re: cronjob is not running
First things is that you should always tell OS coorectly before you give other details as this ease the work here to help you further.
Never mind, can you provide us following:
#uname -a
#ls -ltr /etc/init.d/*cron*
To manage crond daemon in Linux, we can make use of â serviceâ command.
To check the status of crond daemon:
service crond status
To stop and terminate crond process:
service crond stop
To start and run crond daemon:
service crond start
To restart crond service:
service crond restart
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2008 04:00 PM
08-29-2008 04:00 PM
Re: cronjob is not running
To restart the cron service, use:
# /etc/init.d/crond restart
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2008 08:01 PM
08-29-2008 08:01 PM
Re: cronjob is not running
I noticed that you have never assigned any points: 0 of 30 responses
http://forums.itrc.hp.com/service/forums/pageList.do?forumId=1&listType=unassigned&userId=WW76047
Please read the following about assigning points:
http://forums.itrc.hp.com/service/forums/helptips.do?#33
If you don't assign points, eventually nobody will provide answers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2008 08:05 PM
09-01-2008 08:05 PM
Re: cronjob is not running
uname -a = LINUX
ls -ltr /etc/init.d/*cron
= /etc/int.d/anacron
The above replies are shown in my LINUX workstation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2008 08:08 PM
09-01-2008 08:08 PM
Re: cronjob is not running
uname -a = LINUX
ls -ltr /etc/init.d/*cron
= /etc/int.d/anacron, /etc/init.d/crond