What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Scheduled LED control not working for me

rslarsen

Occasional Visitor
I created three scripts "services-start", "ledsoff.sh","ledson.sh" as WIKI says
placed them in /jffs/scripts/

executed this command "cru l" in putty

admin@RT-AC66U:/tmp/home/root# cru l
0 18 * * * /jffs/scripts/ledsoff.sh #lightsoff#
0 6 * * * /jffs/scripts/ledson.sh #lightson#
admin@RT-AC66U:/tmp/home/root#

But the LED light is still on. What do I wrong?

/Rene
 
Try manually running the scripts to ensure they are properly encoded and actually work. Note that you cannot use Notepad, you need a text editor capable of saving files with a UNIX encoding, such as Notepad++ or Textpad.
 
I created three scripts "services-start", "ledsoff.sh","ledson.sh" as WIKI says
placed them in /jffs/scripts/

But the LED light is still on. What do I wrong?

/Rene
Hi Rene,

Did you set the execute-flag to the scripts? :rolleyes:
Punch or copy into Putty somthing like:
Code:
chmod a+x /jffs/scripts/*

And then try to execute the scripts manually:
Code:
./jffs/scripts/ledsoff.sh
./jffs/scripts/ledson.sh

With kind regards
Joe :cool:
 
It work now, when I do what joegreat wirtes.
I think the problem was the execute-flag to the scripts was set to 755 instead of 777.
Thanks
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top