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 > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Crontab error Pablo_beezo Shell Programming and Scripting 4 02-23-2009 10:12 AM
crontab : bad minute error crackthehit007 UNIX for Advanced & Expert Users 1 02-16-2009 06:38 AM
Crontab error kclerks11 UNIX for Dummies Questions & Answers 2 12-07-2008 10:12 PM
unexpected crontab error dhanamurthy Shell Programming and Scripting 12 11-06-2008 10:24 PM
crontab -e error uadm26 Linux 5 01-03-2008 12:53 PM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-01-2009
dman110168 dman110168 is offline
Registered User
  
 

Join Date: Oct 2000
Location: Boston
Posts: 13
Error using crontab -e

I am trying to create a crontab job for my Oracle logon. I added oracle to the cron.allow file but when I try the crontab -e I get:

Xlib:connection to 0:0 refused by server
Xlib:Client is not authorized to connect to server
Error:Cannot open display "0:0"
crontab temporary file empty

when I crontab -e as root I dont have this issue... also is there a way instead of creating a crontab job under user oracle can I add a cron job to root's crontab and run it as oracle???

Any help is greatly appreciated.. Thanks
  #2 (permalink)  
Old 04-01-2009
wempy's Avatar
wempy wempy is online now
Registered User
  
 

Join Date: Jun 2006
Location: Harpenden, UK
Posts: 205
depends on your OS.

If you are using linux, as root create a /var/spool/cron/<OracleUserName> file with the details of the job that you want to run. chown the file to root:<OracleUsersPrimaryGroup>, chmod it 0600 and restart the cron daemon (possibly /etc/rc.d/init.d/vixiecron

The error message you have given, however, does not relate to crontab directly. It is the usual error you get when you try and run an X program as a different user to the one that started X. Are you trying this in an xterm after having su'ed to the oracle user? Does the oracle user have a valid shell in /etc/passwd? does the oracle user have a valid (readable and writeable by the oracle user) home directory in /etc/passwd?

What OS? (output from uname -a)
  #3 (permalink)  
Old 04-01-2009
Ikon's Avatar
Ikon Ikon is offline Forum Advisor  
Registered User
  
 

Join Date: Jul 2008
Location: Phoenix, Arizona
Posts: 669
as root user try:
Code:
crontab -e <oracle user>
  #4 (permalink)  
Old 07-03-2009
Sumedha Sobti Sumedha Sobti is offline
Registered User
  
 

Join Date: Jul 2009
Location: India
Posts: 9
Hi,

You may try the following:

EDITOR=vi
export EDITOR
crontab -e

<<Enter crontabs>>

Ctrl q! <<--- Command to end crontab file

I don't think there would be any problem, incase the problem still persists, you may use what wempy has mentioned i.e. /var/spool/cron/crontabs

Regards,
Sumedha
Sponsored Links
Reply

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 04:09 PM.


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