LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 10-11-2005, 01:30 AM   #16
(=AA=)
LQ Newbie
 
Registered: Dec 2002
Location: UK
Distribution: FreeBSD
Posts: 24

Rep: Reputation: 3

Well... I have a cronjob that runs every 3 minutes (for a monitoring system).

When the monitoring system stopped receiving data, I logged into the box.

The first thing I tried was to restart cron, in the hope that by simply restarting it, normal cronjob would resume.

That didn't work. cannot start cron; FIFO exists, <date and time>

As you say, cron is "perfect" (I use the term lightly) and it turned out that the problem was with the root password that had expired, at least for running the cronjobs.

export EDITOR=vi fixed the editor.
(Not sure why this would go from vi back to ed, or if it never was vi, why now suddenly it stopped being able to edit cron.)

Now you may say that I should have noticed the root password earlier, when trying to su, but I use a different root account as the box is remotely managed.

I can say this: jlliagre is right. cron is not the problem.
 
Old 10-11-2005, 01:50 AM   #17
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Not sure why this would go from vi back to ed, or if it never was vi, why now suddenly it stopped being able to edit cron.
You are not stopped from being able to edit the cron jobs, just a different editor is used and you do not know how to interact with it.
Ed is actually the fallback editor "crontab -e" use when EDITOR is unset.
man crontab is explaining that.
 
Old 04-14-2008, 09:55 AM   #18
seberino
LQ Newbie
 
Registered: Apr 2008
Posts: 1

Rep: Reputation: 0
You need create a file /etc/cron.d/cron.allow or /etc/cron.d/cron.deny

You don't need to restart crond deamon.

Cron need /etc/cron.d/cron.allow with user's list allowed to use this deamon or /etc/cron.d/cron.deny with user's list forbiden to use this deadmon.

If you want to allow all users to use this deamon create a empty file /etc/cron.d/cron.deny
 
  


Reply



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
How do I start graphical applications via cron? p0ser Linux - Software 7 01-21-2005 02:44 PM
SIOCADDRT: File exists SIOCCADDRT: File Exists Failed to bring up eth0. opsraja Linux - Networking 0 01-10-2005 08:29 AM
FIFO using pointers AquamaN Programming 2 03-21-2004 05:51 PM
FIFO question gauge73 Linux - Newbie 1 02-28-2003 11:39 PM
Using cron to start a program at reboot ? s&j Linux - General 2 06-22-2002 04:31 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 11:11 PM.

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
Open Source Consulting | Domain Registration