Home > To Edit > Unable To Edit Crontab File

Unable To Edit Crontab File

Contents

How to decorate a segment of a filled path in TikZ? The following example shows how to determine if an editor has been defined, and how to set up vi as the default. $ which $EDITOR $ $ EDITOR=vi $ export EDITOR Thankyou all very much Top White Papers and Webcasts Popular 3 Essential Components for a Strong End User Security ... If neither is set, it will use ed.. .7/M. http://brrian.net/to-edit/unable-to-edit-crontab.html

Where your maillog ends up depends on your /etc/syslog.conf, /var/log/syslog seems to be the default on many systems. .7/M. Home | Invite Peers | More UNIX Groups Your account is ready. But now i have another issue. I get something like this: bash-2.05$ crontab -e 135 My problem is that I don't have EDITOR environment variable set.

Unable To Edit Crontab In Solaris 10

more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed Please type your message and try again. cwalker33 replied Oct 29, 2007 You have to set your editor with one of the following before you use vi: ksh EDITOR=vi;export EDITOR -or- csh setenv EDITOR vi Top Best Answer rhel cron share|improve this question edited Jan 18 '13 at 22:21 Keith Thompson 8,69232235 asked Jan 18 '13 at 20:39 Keith Wolters 1166 1 Does crontab -l work?

Create a new crontab file, or edit an existing file. # crontab -e [username]where username specifies the name of the user's account for which you want to create or edit a Why is the movie called "Dirty Dancing"? Not the answer you're looking for? Related 22Why did my crontab not trigger?2/etc/crontab edited via copy and paste, how to revert back?2Cannot edit crontab as non root user0Using nano to edit a crontab0broken cron job after editing

abrante Nov 30, 2010 12:13 PM (in response to user9285225) Hmm, it sounds like you aren't familiar with the vi editor, maybe this one can help: https://docs.rice.edu/confluence/download/attachments/6783727/unix04.pdf?version=1 .7/M. 1 person found Not the answer you're looking for? TechnologicHero replied Jan 27, 2012 You are a genius, thank you. useful reference Password Home Search Forums Register Forum RulesMan PagesUnix Commands Linux Commands FAQ Members Today's Posts UNIX for Dummies Questions & Answers This forum is closed for new posts.

I followed the following steps. Do you have free space in /tmp (try df /tmp)? –Keith Thompson Jan 18 '13 at 22:22 | show 1 more comment 1 Answer 1 active oldest votes up vote 1 Problem is, when I execute "crontab -e" to edit current crontab file I don't get editor window. Here it is: By default you are using the "ed" editor.

Crontab -e Not Working

Inside the Oracle Optimizer We have moved! Clicking Here I do not have root privs on the server, so I do not start crond myself. Unable To Edit Crontab In Solaris 10 So why is crontab -e not working for me? How To Edit Crontab In Linux How to make a shell read the whole script before executing it?

share|improve this answer edited Nov 16 '12 at 15:15 answered Nov 16 '12 at 14:19 itsbruce 3,7051530 add a comment| up vote 4 down vote You need to turn on insert this content Cary Millsap Messed-Up App of the Day: Tables of Numbers Tom Kyte Upcoming Events... After setting the editor=vi, its working fine. Instead of crontab -e type strace crontab -e.

  • How to Create or Edit a crontab FileBefore You Begin If you are creating or editing a crontab file that belongs to root or another user you must become root.
  • Top This thread has been closed due to inactivity.
  • EDIT to be for example vi Top Best Answer 1 Mark this reply as the best answer?(Choose carefully, this can't be changed) Yes | No Saving...
  • A surprising conjecture about twin primes How to build a hacking challenge that uses XSS?
  • Son's music tastes Is there a non-medical name for the curve where index finger and thumb meet?
  • A Page of Puzzling What does the compression setting do to a PNG?
  • j.m.krueger Nov 30, 2010 10:38 AM (in response to user9285225) You can edit your cronfile with "crontab -e" You may have to set the shell variable "VISUAL" to /bin/vi or whatever
  • more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed
  • You can test this by running EDITOR=pico crontab -e Substituting whatever is your actual preferred editor (sounds like it may be nano or pico).
  • abrante Dec 2, 2010 2:33 PM (in response to user9285225) cron itself logs to /var/cron/log .

I have to do something like this: bash-2.05$ export EDITOR=vi bash-2.05$ crontab -e #Then I will receive proper output to edit crontab file 30 21 * * * /opt/oracle/product/9.2.0/local/script1 30 22 Thanks, Edwin. Note that scripts which run from crontab gets a very basic PATH (only /usr/bin IIRC) and not any other variables, so a script which runs nicely outside cron, might fail in weblink That should give a (quite long) list all system calls of the running command.

When i use crontab -e to edit, it does not show the contents of the crontab for editing, but will give a simple number, so unable to edit the crontab. A 'for' loop that appears to be practically infinite Can I disarm and immediately grapple with Tavern Brawler? Crazy uh?

Crontab issue -- Unable to edit, only list Prasanna SN asked Oct 29, 2007 | Replies (11) I am running Solaris 10 U4.

These tasks are often termed as cron jobs in unix , solaris. TERM variable to be for example vt220, vt320, etc and/or set your editor i.e. Like Show 0 Likes(0) Actions Go to original post Actions About Oracle Technology Network (OTN)My Oracle Support Community (MOSC)MOS Support PortalAboutModern Marketing BlogRSS FeedPowered byOracle Technology NetworkOracle Communities DirectoryFAQAbout OracleOracle and The default editor for your system environment is defined in the EDITOR environment variable.

You can create your own crontab file without superuser privileges, but you must have superuser privileges to creating or edit a crontab file for root or another user. The syntax varies from shell to shell. Re: How to edit crontab in solaris? http://brrian.net/to-edit/unable-to-edit-crontab-solaris.html Please help.

Even when it's been years from the day you wrote this, it's being useful for me now... Are the mountains surrounding Mordor natural? Related Return Path Email Metrics Troubleshooter Blueprint for Delivering IT-as-a-Service - 9 Steps for ... 7 Stages of IT Monitoring Grief MoreWhitePapers Best Answer 0 Mark this reply as the best This site is not affiliated with Linus Torvalds or The Open Group in any way.

The following entry works for me. (using bash shell) EDITOR=/usr/bin/vi If that doesn't work then do this: EDITOR=vi; export EDITOR Share this:EmailFacebookGooglePrintLike this:Like Loading... What are the considerations for waterproofing a building's first few floors? This is how I managed to do it in vi/vim share|improve this answer answered Mar 17 '13 at 2:50 shea 5041931 add a comment| up vote 2 down vote ~ would I even can not exit from this file because Ctr+x doesn't work.

Post a Comment Newer Post Older Post Home Subscribe to: Post Comments (Atom) Subscribe Subscribe to my blogs feed Subscribe via Email TAG CLOUD ASM Backup Best Practice Book Reviews Certification Solve problems - It's Free Create your account in seconds E-mail address is taken If this is your account,sign in here Email address Username Between 5 and 30 characters. abrante Nov 30, 2010 1:51 PM (in response to j.m.krueger) crontab uses $EDITOR, its what i normally use. PCMag Digital Group AdChoices unused current community chat Stack Overflow Meta Stack Overflow your communities Sign up or log in to customize your list.

Prasanna S N Join this group Popular White Paper On This Topic The Six Questions Every IT Leader Needs to Ask 11Replies Best Answer 0 Mark this reply as the best Try something like: EDITOR=/usr/bin/vi export EDITOR and you really want to put it in your startup file for your shell so it will be set each time you login. If a journal not indexed in SCI nor in EI, is it worth publishing in? How would people living in eternal day learn that stars exist?

If you instead saved changes and exited the file, the existing crontab file would be overwritten with an empty file. Protter Exalted Contributor Options Mark as New Bookmark Subscribe Subscribe to RSS Feed Highlight Print Email to a Friend Report Inappropriate Content ‎05-26-2009 12:12 AM ‎05-26-2009 12:12 AM Re: unable to