"Solved" Crontab gets deleted on reebot!

    • "Solved" Crontab gets deleted on reebot!

      Hi all,
      I have installed cron via /tmp.
      Editing the crontab file by: crontab -e and saving it, all works just fine but if i later on make a reboot the crontab file gets deleted.
      Crontab -l resluts in" no crontab for root".
      What am i doing wrong?
      I think i'll give up soon.

      update:
      It must be something wrong with the cron package, the install doesn't stop,seems like it could go on forever(i waited 25 min to be sure) have to reebot to stop it.

      I managed to fix the problem,I did like below, and created those dirs since they were missing and put the script in "cron.daily"

      From MAN Vixie cron:
      "In the /etc directory you will probably find some sub directories called
      'cron.hourly', 'cron.daily', 'cron.weekly' and 'cron.monthly'. If you place
      a script into one of those directories it will be run either hourly, daily,
      weekly or monthly, depending on the name of the directory. "

      I then removed the .sh extension of the script file, would start otherwise.
      I then created a crontab file in /etc
      Crontab file looks like this and it's named: crontab
      --------------------------------------------------------------------------------------
      SHELL=/bin/sh
      PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

      # m h dom mon dow user command
      59 18 * * * root run-parts /etc/cron.daily
      ------------------------------------------------------------------------------------
      Finally I can run the e2_loadepg every day so that i now have 7days EPG.

      Reg
      teddan
      DM800S NewNigma2 V2.8.3+320gb eSata+Internal Fan: Akasa-179BKT-C
      DM600S NewNigma2 V2.6.1+160GB hdd
      DM500S GP
      Alex+Samsung 9500AY
      Asus+NewCs

      Dieser Beitrag wurde bereits 5 mal editiert, zuletzt von teddan ()