DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2011-12-04 03:05:36

tannenba
Member
Registered: 2011-12-04
Posts: 6

Cron on the dns-323

Hello, I don't know if I've gone dumb, or just missing some piece of the puzzle.

I used the cronedit script to start and stop transmission.  (ISP charges for outside of midnight to 6am)
The script:
#!/bin/sh
##############################################################################
# ----[ editcron.sh ] ----
# script to keep cronjobs persistent (e.g. after reboot)
# w 22/10/08 horto
# ref/credit: http://tinyurl.com/5m2349 - thanks chumby!
#############################################################################
FFP=/mnt/HD_a2/ffp
export PATH=/ffp/sbin:/ffp/bin:/usr/sbin:/sbin:/usr/bin:/bin
CRONTXT=$FFP/etc/crontab.txt

# start with existing crontab
# note:  on a fresh reboot, this will always have been reset to standard
/bin/crontab -l > $CRONTXT
 
  # add cronjobs here preceeded by /bin/echo.
  # don't forget to enclose them in double quotes.
  /bin/echo "45 16 * * * /ffp/start/transmission start" >> $CRONTXT
  /bin/echo "40 16 * * * /ffp/start/transmission stop" >> $CRONTXT
  # install the new crontab
   /bin/crontab $CRONTXT
   
    # clean up
    /bin/rm $CRONTXT


Problem is, cron does not seem to be working at all?

crontab -l =

59 1 * * * /usr/sbin/daylight&
30 2 * * * /usr/sbin/stime&
*/60 * * * * /usr/sbin/getdhcp&
32 2 * * * /usr/sbin/rtc -s
30 2 2 * * /usr/sbin/rtc -c
45 16 * * * /ffp/start/transmission start
40 16 * * * /ffp/start/transmission stop

No indication that it is working...16:43 and the daemon was still running.  Looked in all the logs I could find, and can't find any indications.

I'm either missing something obvious, or?

Any help/suggestions would be appreciated.

Joe

Offline

 

#2 2011-12-04 06:01:36

tannenba
Member
Registered: 2011-12-04
Posts: 6

Re: Cron on the dns-323

Duh!  Knew it had to be stupid!  was /ffp/start/transmission  s/b /ffp/start/transmission.sh!

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB