Home > Archive > Unix Programming > March 2007 > crontab -e doesnt work
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
crontab -e doesnt work
|
|
| mihirshirali@gmail.com 2007-03-21, 5:41 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
| |
| Paul Pluzhnikov 2007-03-21, 5:41 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.
| |
| mihirshirali@gmail.com 2007-03-21, 5:41 am |
| 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
| |
| mihirshirali@gmail.com 2007-03-21, 5:41 am |
| 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
| |
| Horst Scheuermann 2007-03-21, 5:41 am |
| mihirshirali@gmail.com writes:
> On Mar 21, 11:23 am, Paul Pluzhnikov <ppluzhnikov-...@charter.net>
> wrote:
[color=darkred]
> 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.
| |
| mihirshirali@gmail.com 2007-03-21, 5:41 am |
| 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
| |
| shakahshakah@gmail.com 2007-03-21, 8:03 am |
| 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[color=darkred]
>
gestellten[color=darkred]
e quoted text -[color=darkred]
>
>
> 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
| |
|
| On Wed, 21 Mar 2007 03:57:02 -0700, shakahshakah@gmail.com wrote:
That's a feature bash borrowed from ksh
[color=darkred]
>
> 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
| |
| Frank Langelage 2007-03-21, 7:05 pm |
| 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
| |
| mihirshirali@gmail.com 2007-03-22, 4:05 am |
| On Mar 22, 1:01 am, Frank Langelage <f...@lafr.de> wrote:
> mihirshir...@gmail.com wrote:
gestellten[color=darkred]
de quoted text -[color=darkred]
>
>
>
>
>
> 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
| |
| Casper H.S. Dik 2007-03-23, 8:04 am |
| mihirshirali@gmail.com writes:
>Hi Horst,
>No luck with EDITOR=vi too
The old shell syntax is:
EDITOR=vi
export EDITOR
Casper
--
Expressed in this posting are my opinions. They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.
|
|
|
|
|