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
How to edit the crontab file rajus19 Shell Programming and Scripting 2 05-25-2007 08:34 AM
Different edit crontab at Solaris..? srilinux SUN Solaris 25 12-17-2006 02:50 AM
Edit Crontab juliet UNIX for Dummies Questions & Answers 11 09-28-2006 04:32 PM
edit crontab without -e d_swapneel14 Shell Programming and Scripting 8 04-11-2006 03:50 AM
Crontab - Recommended way to edit? frustrated1 UNIX for Advanced & Expert Users 3 08-26-2003 03:45 AM

Closed Thread
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 10-24-2005
FredSmith FredSmith is offline
Registered User
  
 

Join Date: Sep 2005
Posts: 88
Can't edit crontab

I saw a post on here a while back describing how to edit a crontab file when I'm not able to edit it via crontab -e.

Currently, if I try to do a crontab -e, it just comes back with:

# crontab -e
7987


<and then it just hangs there FOREVER>

If I do a crontab -l, it shows me all of the cronjobs as expected.

How can I edit the crontab?

Thanks!
  #2 (permalink)  
Old 10-24-2005
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,111
You are editing crontab but you are using the ed editor. Type a "q" to get out of that. You need to have an environment variable to change to another editor. Which editor is your choice. The syntax varies from shell to shell. 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.
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 12:39 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