Crontab error in AIX - unable to read from the file
AIXThis forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Crontab error in AIX - unable to read from the file
Dear Friends,
Can any one help me out : I want to schedule a script in using crontab but when i enter command "crontab -e" from root it gives error "Unable to read from the file". Please help me out.
Dear Friends,
Can any one help me out : I want to schedule a script in using crontab but when i enter command "crontab -e" from root it gives error "Unable to read from the file". Please help me out.
You say you ran 'crontab -e' FROM root...did you mean AS root, or are you just executing that command from the "/" directory? Are there any existing cron entries? And are you able to continue after that message comes up?
It's possible that there IS no crontab, so you're creating one by entering your commands. If you're able to enter the editor, try putting something in there, and saving/exiting the editor, and try to run 'crontab -e' again.
Actually i executed command after switching to the root user. The file exist over there in the directory but i am facing this error while editing it. I am not allowed to edit the file.
Actually i executed command after switching to the root user. The file exist over there in the directory but i am facing this error while editing it. I am not allowed to edit the file.
Sorry, not sure what you're saying here. What "file exist over there in the directory"??? What file, and what directory? And if you're root, you can edit ANYTHING on the system. Can you do an "ls -l" on that file??? Are there cron.allow and cron.deny files? Is root listed in cron.allow? If root is NOT listed in cron.allow (and that file exists), you WILL NOT be able to run/edit cron jobs. So edit the cron.allow file and add root if it's not there already.
'crontab -e' invokes your default editor. Provided your EDITOR environment variable is properly set (eg. export EDITOR=/usr/local/bin/mcedit or whatnot)
'crontab -e' invokes your default editor. Provided your EDITOR environment variable is properly set (eg. export EDITOR=/usr/local/bin/mcedit or whatnot)
Wow...VERY good catch, NevemTeve. You're 100% right, and I never thought of that as being part of the problem. That would have never occurred to me.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.