delphi programming forums mysql charset mget recursive synonimos
free ventrilo servers hosting cs javascript delay python find in list
Back Forum New
abstract:

crontab -e
0
Please advise why I cant create a cron job in my cron file?


I cant seem to create a cron job in my Solaris 10 server.
I tried crontab -e and it reponds with a 0 where I cant add anything to it:
Code:
  1. crontab -e
  2. 0
Copy Code
Please advise why I cant create a cron job in my cron file?

TOP

It does not say that you do not have permissions, so it is probably the version or configuration of crontab.  Most Linux systems do not like the "-e" option to edit crontab and recommend that you edit the crontab file it self.  To do this execute crontab with the "-l" option to list its contents and capture that in the file, then edit the file and then execute crontab filename to get crontab to use the new file.
Code:
  1. crontab -l > crontab.out
  2. vi crontab.out # add the crontab entry you want
  3. crontab crontab.out # will get crontab to use the new file
  4. crontab -l # will now list the new entries you just added to crontab
Copy Code

TOP

Never heard that before - I'd more suspect an empyt crontab file and envrinement set up without a default editor.  Try export EDITOR=vi before doing the crontab -e.



crontab -e
0
Please advise why I cant create a cron job in my cron file?

TOP

Back Forum