What's new

crontab using cru -not working

  • 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!

You have it under: /jffs/scripts/firewall-start
And enabled: Enable JFFS custom scripts and configs?
Code:
#!/bin/sh
sh /jffs/scripts/malware-filter.sh
From command line do, and test again: dos2unix /jffs/scripts/firewall-start
 
You have it under: /jffs/scripts/firewall-start
And enabled: Enable JFFS custom scripts and configs?
Code:
#!/bin/sh
sh /jffs/scripts/malware-filter.sh
From command line do, and test again: dos2unix /jffs/scripts/firewall-start
I have firewall-start under /jffs.
Should it be in /jffs/scripts?
 
Last edited:
Beware that there is an Exit 0 in the cru script..
So if you call it from another script, say services-start , it will close THAT script too, unless you take precautions, like starting it with an sh...
 
Last edited:
Not true.
YOU ARE RIGHT! I tried a test case and found out that the exit does not cause the termination of the caller.. I suspect if "source" or something else is used then it might kill the caller..
 

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!
Top