These tasks are often termed as cron jobs in unix , solaris. Crontab Script Crontab Refresh? You can create or edit a crontab file for another user, or root, if you have superuser privileges. Does your account have rights to the file? –Miguel-F Nov 16 '12 at 14:13 1 You might have a better chance getting answers from serverfault.com –emartel Nov 16 '12 at
Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework. Legal Notices Review your favorite Linux distribution. I have permissions to /tmp (touch /tmp/foo works for example). Remove advertisements Sponsored Links FredSmith View Public Profile Find all posts by FredSmith #2 10-24-2005 Perderabo Unix Daemon (Administrator Emeritus) Join Date: Aug 2001 Last Activity: 26
Register now while it's still free! chandra sekhar karuturi replied Oct 30, 2007 have you tried this, #EDITOR=vi #export EDITOR #crontab -e then you will get the file to be edited , edit it and save it Check list file crontab [email protected] # crontab -l0 23 * * * /u02/applprod/backup_daily.sh 09 06 * * * /u02/applprod/backup_daily_up.sh 2. Change Crontab Editor Click Here to join Tek-Tips and talk with other members!
All product names are trademarks of their respective companies. How To Edit Crontab In Linux If you instead saved changes and exited the file, the existing crontab file would be overwritten with an empty file. All Rights Reserved. https://docs.oracle.com/cd/E23824_01/html/821-1451/sysrescron-24589.html Your crontab file is only accessible by root.
Thankyou all very much Top White Papers and Webcasts Popular The Difference Between Microsoft Azure & Amazon AWS Related Return Path Email Metrics Troubleshooter Blueprint for Delivering IT-as-a-Service - 9 Steps Crontab -e Not Working and also do you start cronotab as sudoer $ or as root # ? –Yurij73 Jan 18 '13 at 20:57 crontab -l does work (as I indicated). Ican only edit the crontab if i'm a root user. Please visit this page to clear all LQ-related cookies.
Toolbox for IT My Home Topics People Companies Jobs White Paper Library Collaboration Tools Discussion Groups Blogs Follow Toolbox.com Toolbox for IT on Twitter Toolbox.com on Twitter Toolbox.com on Facebook Topics https://thiers.net/2011/11/09/solaris-not-able-to-edit-crontab-file/ If running ksh please do the following, or set it up in your .kshrc: export EDITOR=vi If sh, then EDITOR=vi;export EDITOR Dale Top Best Answer 0 Mark this reply as the Unable To Edit Crontab In Solaris 10 enjoy :) chand Top Best Answer 0 Mark this reply as the best answer?(Choose carefully, this can't be changed) Yes | No Saving... How To Edit Crontab In Solaris When I open a file there is some information and the rest empty lines contain tildes ~ in the beginning of each line.
I get something like this: bash-2.05$ crontab -e 135 My problem is that I don't have EDITOR environment variable set. have a peek at these guys Find More Posts by rweaver 01-19-2010, 02:09 PM #4 chickenjoy Member Registered: Apr 2007 Distribution: centos,rhel, solaris Posts: 200 Original Poster Rep: Thanks slacker_et and rweaver. Romeo Ninov replied Oct 29, 2007 set your terminal i.e. edit file [email protected] # vi /var/spool/cron/crontabs/user_aplication0 23 * * * /u02/applprod/backup_daily.sh > /dev/null 2>&109 06 * * * /u02/applprod/backup_daily_up.sh > /dev/null 2>&1:wq!b. Crontab: Can't Open Your Crontab File.
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in. All rights reserved.Unauthorized reproduction or linking forbidden without expressed written permission. Validate Random Die Tippers What's the meaning of "farmer by trade"? http://brrian.net/to-edit/unable-to-edit-crontab-solaris.html How to respond to a ridiculous request from a senior colleague?
I could edit the crontab using the root account but when i switch to the user account I'm getting the following problem: Quote: $ crontab -e 64 Trying to exit: Quote: What Is Crontab every Sunday morning. For example, the following output shows that crontab files exist for users jones and smith. $ ls -l /var/spool/cron/crontabsVerify the contents of user's crontab file by using the crontab -l command
Search this Thread 01-19-2010, 12:54 PM #1 chickenjoy Member Registered: Apr 2007 Distribution: centos,rhel, solaris Posts: 200 Rep: user cannot edit his cron entries using crontab -e Hi, I Works as expected now. Currently, if I try to do a crontab -e, it just comes back with: # crontab -e 7987
Prasanna S N Join this group Popular White Paper On This Topic Three Ways Big Data is changing ITSM 11Replies Best Answer 0 Mark this reply as the best answer?(Choose carefully, What did SuSE change? chickenjoy View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by chickenjoy 01-19-2010, 01:00 PM #2 slacker_et Member Registered: Dec 2009 Distribution: Slackware http://brrian.net/to-edit/unable-to-edit-crontab.html Join your peers on the Internet's largest technical computer professional community.It's easy to join and it's free.
Log In E-mail or User ID Password Keep me signed in Recover Password Create an Account Blogs Discussions CHOOSE A TOPIC Business Intelligence C Languages Cloud Computing Communications Technology CRM How does the unaspirated /t/ differ from /d/? Start a new thread here 1674506 Related Discussions Crontab -l is Not Working in AIX 4.3.3 Crontab troubles Enabling a user to edit root crontab file schedule database backup thru crontab Thanks!
It however IS worth learning to use at a basic level because there have been times I've been forced to use it for more than a short period of time. I did try setting EDITOR.