NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
Retired_Member
Feb 09, 2015Auto-run of custom unix command (custom wget) on NAS OS
Hello, i am newbie in linux but i know ssh and basic and some advanced commands and i can handle many things with manual :-D Problem is, that i need to execute 1 basic linux command on my NAS unit ...
Retired_Member
Feb 11, 2015Good news!
I have discovered that fact about different EOL (end of lines) that use dos, windows, and unix. Sry i never heard of it and never noticed. I know just various encoding types differencies, but not this. So altough i use notepad++ on windows and then i transfer files to NAS, it was new thing for me and i have just hit "convert EOL for unix" inside this great program and saved both files.
Then, i have added cron and i have added script to my NAS. Both with empty ending line and now also with correct EOL.
I have tested through running command "run-parts /etc/cron.d" and it was givimg me still same error (FUNNY). SO THIS CRON TESTING METHOD DOESNT WORK and i warn everyone!
Because i have waited a few minutes and finally, target file has changed its content (just after schedule time). Voila, problem solved.
Thanks for your time anyway, it was really hard for me and i believe also for you.. you are patient person. Also big curse is that "ofically described method to test crons" didnt worked.
And big thanks for CTLJOURNAL -F, because i have discovered error reports with that first, it has reported "info about missing wrong end of lines".
I have discovered that fact about different EOL (end of lines) that use dos, windows, and unix. Sry i never heard of it and never noticed. I know just various encoding types differencies, but not this. So altough i use notepad++ on windows and then i transfer files to NAS, it was new thing for me and i have just hit "convert EOL for unix" inside this great program and saved both files.
Then, i have added cron and i have added script to my NAS. Both with empty ending line and now also with correct EOL.
I have tested through running command "run-parts /etc/cron.d" and it was givimg me still same error (FUNNY). SO THIS CRON TESTING METHOD DOESNT WORK and i warn everyone!
Because i have waited a few minutes and finally, target file has changed its content (just after schedule time). Voila, problem solved.
Thanks for your time anyway, it was really hard for me and i believe also for you.. you are patient person. Also big curse is that "ofically described method to test crons" didnt worked.
And big thanks for CTLJOURNAL -F, because i have discovered error reports with that first, it has reported "info about missing wrong end of lines".
Related Content
- Nov 30, 2019Retired_Member
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!