crontab -e doesnt work
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > crontab -e doesnt work




Pages (2): [1] 2 »   Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    crontab -e doesnt work  
mihirshirali@gmail.com


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-21-07 06:34 AM

Hi,

I have been using crontab for a while now... but needed edit the
existing job in cron...
However heres the issue..
If I issue crontab -e, the temp file which allows the input doesnt
seem to be opening.  Though crontab -l indicates the current job; the
-
e option doesnt open the file


<snips>


crontab -l
00 20 * * * /auto/tftpboot-users/mshirali/MDDTS/query1.mshirali


However now crontab -e wont let me do any editing.. I see the
following when I issue it:
crontab -e
65


?


?
<snips>
Any help will be appreciated






[ Post a follow-up to this message ]



    Re: crontab -e doesnt work  
Paul Pluzhnikov


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-21-07 06:34 AM

mihirshirali@gmail.com writes:

> However now crontab -e wont let me do any editing..

It does let you do editing, you just don't realize that.

> I see the following when I issue it:
> crontab -e
> 65
>
>
> ?

Try "man ed".

> Any help will be appreciated

Since it's unlikely that you'll want to learn 'ed', solution is to

export VISUAL=vi

Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.





[ Post a follow-up to this message ]



    Re: crontab -e doesnt work  
mihirshirali@gmail.com


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-21-07 12:24 PM

On Mar 21, 11:23 am, Paul Pluzhnikov <ppluzhnikov-...@charter.net>
wrote:
> mihirshir...@gmail.com writes: 
>
> It does let you do editing, you just don't realize that.
> 
> 
>
> Try "man ed".
> 
>
> Since it's unlikely that you'll want to learn 'ed', solution is to
>
>   export VISUAL=vi
>
> Cheers,
> --
> In order to understand recursion you must first understand recursion.
> Remove /-nsp/ for email.

Hi Paul,

This doesnt seem to be working.. I tried both the options. Since
crontab -l already lists my older job, when I issue a crontab -e
shouldn 't I be able to view the older job.
I tried using esport VISUAL vi too... just doesn't seem to work ;(
Am I missing something ?

-Mihir






[ Post a follow-up to this message ]



    Re: crontab -e doesnt work  
mihirshirali@gmail.com


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-21-07 12:24 PM

On Mar 21, 12:07 pm, mihirshir...@gmail.com wrote:
> On Mar 21, 11:23 am, Paul Pluzhnikov <ppluzhnikov-...@charter.net>
> wrote:
>
>
>
>
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> Hi Paul,
>
> This doesnt seem to be working.. I tried both the options. Since
> crontab -l already lists my older job, when I issue a crontab -e
> shouldn 't I be able to view the older job.
> I tried using esport VISUAL vi too... just doesn't seem to work ;(
> Am I missing something ?
>
> -Mihir- Hide quoted text -
>
> - Show quoted text -

I checked export VALUE=vi on linux based machine and it woeks fine.
However I was wondering how we will do the same in case of Solaris
machine as it doesnt help here.. and I need it to work there






[ Post a follow-up to this message ]



    Re: crontab -e doesnt work  
Horst Scheuermann


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-21-07 12:24 PM

mihirshirali@gmail.com writes:

> On Mar 21, 11:23 am, Paul Pluzhnikov <ppluzhnikov-...@charter.net>
> wrote: 
[vbcol=seagreen]
> Hi Paul,

> This doesnt seem to be working.. I tried both the options. Since
> crontab -l already lists my older job, when I issue a crontab -e
> shouldn 't I be able to view the older job.
> I tried using esport VISUAL vi too... just doesn't seem to work ;(
> Am I missing something ?

> -Mihir

try export EDITOR=vi
--
Fußgänger sind wie das ideale Gas: Sie nehmen jeden zu Vergügung gestellten
Verkehrsraum vollständig ein, notfalls durch intensives Torkeln.





[ Post a follow-up to this message ]



    Re: crontab -e doesnt work  
mihirshirali@gmail.com


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-21-07 12:24 PM

On Mar 21, 2:00 pm, h...@use-reply-to.invalid (Horst Scheuermann)
wrote:
> mihirshir...@gmail.com writes: 
> 
> 
> 
> 
> 
> 
> 
> 
>
> try export EDITOR=3Dvi
> --
> Fu=DFg=E4nger sind wie das ideale Gas: Sie nehmen jeden zu Verg=FCgung ge=
stellten
> Verkehrsraum vollst=E4ndig ein, notfalls durch intensives Torkeln.- Hide =
quoted text -
>
> - Show quoted text -

Hi Horst,

No luck with EDITOR=3Dvi too
<snip>
$ export EDITOR=3Dvi
EDITOR=3Dvi: is not an identifier

Tried using "export EDITOR vi" too...
Though the command is accepted.. I see the same issue






[ Post a follow-up to this message ]



    Re: crontab -e doesnt work  
shakahshakah@gmail.com


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-21-07 12:24 PM

On Mar 21, 5:55 am, mihirshir...@gmail.com wrote:
> On Mar 21, 2:00 pm, h...@use-reply-to.invalid (Horst Scheuermann)
> wrote:
>
>
> 
> 
> 
> 
> 
> 
> 
> 
> 
n=2E[vbcol=seagreen] 
> 
gestellten[vbcol=seagreen] 
e quoted text -[vbcol=seagreen]
> 
>
> Hi Horst,
>
> No luck with EDITOR=3Dvi too
> <snip>
> $ export EDITOR=3Dvi
> EDITOR=3Dvi: is not an identifier
>
> Tried using "export EDITOR vi" too...
> Though the command is accepted.. I see the same issue

Maybe one of the following?
prompt$ EDITOR=3D/usr/bin/vi crontab -e
prompt$ EDITOR=3D`which vi` crontab -e






[ Post a follow-up to this message ]



    Re: crontab -e doesnt work  
moi


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-21-07 06:25 PM

On Wed, 21 Mar 2007 03:57:02 -0700, shakahshakah@gmail.com wrote:

 
That's a feature bash borrowed from ksh
[vbcol=seagreen] 
>
> Maybe one of the following?
>   prompt$ EDITOR=/usr/bin/vi crontab -e
>   prompt$ EDITOR=`which vi` crontab -e

EDITOR=/usr/bin/vi;export EDITOR

HTH,
AvK





[ Post a follow-up to this message ]



    Re: crontab -e doesnt work  
Frank Langelage


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-22-07 12:20 AM

mihirshirali@gmail.com wrote:
> On Mar 21, 2:00 pm, h...@use-reply-to.invalid (Horst Scheuermann)
> wrote: 
>
> Hi Horst,
>
> No luck with EDITOR=vi too
> <snip>
> $ export EDITOR=vi
> EDITOR=vi: is not an identifier
>
> Tried using "export EDITOR vi" too...
> Though the command is accepted.. I see the same issue
>

export VARIABLE=value is korn shell (/bin/ksh) syntax.
root user has bourne shell per default (/bin/sh).
So you must do this in two steps. This works for both.
1. VARIABLE=value
2. export VARIABLE





[ Post a follow-up to this message ]



    Re: crontab -e doesnt work  
mihirshirali@gmail.com


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-22-07 06:24 AM

On Mar 22, 1:01 am, Frank Langelage <f...@lafr.de> wrote:
> mihirshir...@gmail.com wrote: 
gestellten[vbcol=seagreen] 
de quoted text -[vbcol=seagreen]
> 
> 
> 
> 
>
> export VARIABLE=3Dvalue is korn shell (/bin/ksh) syntax.
> root user has bourne shell per default (/bin/sh).
> So you must do this in two steps. This works for both.
> 1. VARIABLE=3Dvalue
> 2. export VARIABLE- Hide quoted text -
>
> - Show quoted text -

Hi All,

Thanks for all the inputs and pointers.. Its working fine now..
Guess.. it had to be done in two steps

-Mihir






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 07:03 PM.      Post New Thread    Post A Reply      
Pages (2): [1] 2 »   Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register