The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com



SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Cron problem tez UNIX for Dummies Questions & Answers 3 10-27-2006 05:48 PM
cron problem! blowtorch UNIX for Advanced & Expert Users 4 03-08-2006 01:12 AM
Problem with cron jhansrod AIX 2 11-25-2005 04:30 PM
cron problem VPN UNIX for Dummies Questions & Answers 2 04-16-2004 06:27 AM
Cron Problem Raiden Shell Programming and Scripting 4 11-16-2003 07:00 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 02-18-2007
solne solne is offline
Registered User
  
 

Join Date: Feb 2007
Posts: 3
problem with cron job

new to unix here, im learning how to schedule jobs with crontab. The following cron job runs under root but not under a test account i created.

50 11 * * 0 /usr/bin/banner "HELLO" > /dev/console

i have no idea with it isn't running under the test account but runs right on time when i create the cronjob under root.can someone please help? thanks.
  #2 (permalink)  
Old 02-18-2007
BOFH BOFH is offline Forum Advisor  
Registered User
  
 

Join Date: Feb 2005
Location: Broomfield, CO
Posts: 406
You might check /var/cron/log to make sure the command's executing. Cron jobs won't run if the account's password has been locked. Also, make sure you're using crontab -e to make changes vs hand editing them. Cron doesn't know about new crontabs files unless you restart the cron process. crontab -e kicks the cron process when you save your changes.

Carl
  #3 (permalink)  
Old 02-18-2007
solne solne is offline
Registered User
  
 

Join Date: Feb 2007
Posts: 3
Thanks for the reply, I checked the log and the error is:
"! could not obtain latest contract from popen(3C): No such process "

I tried a different cron job and it works, it seems this only happens on non-root jobs that produce output.

any help please?
  #4 (permalink)  
Old 02-19-2007
BOFH BOFH is offline Forum Advisor  
Registered User
  
 

Join Date: Feb 2005
Location: Broomfield, CO
Posts: 406
Well now, with an actual error message, you can google the results. I did a quick google and found this interesting topic over on the sun forums:

http://forum.java.sun.com/thread.jspa?threadID=5073270

You might check it out and see if any of the answers there fix your problem.

Carl
  #5 (permalink)  
Old 02-19-2007
solne solne is offline
Registered User
  
 

Join Date: Feb 2007
Posts: 3
I actually saw that forum before my second post here, but found no solution. If anyone else in addition to BOFH, please feel free to chime in.
  #6 (permalink)  
Old 02-19-2007
sb008 sb008 is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2007
Posts: 384
In general only root has the right to write to /dev/console
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:14 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0