How to delete a persistent cronjob
How to delete a persistent cronjob
I would like to setup a persistent cronjob through the cronjob-env.sh script but I'm afraid how could I delete this job in a future because no instructions found.
- thechief
- RouterTech Team
- Posts: 12067
- Joined: Wed Feb 01, 2006 10:22 pm
- Location: England, the Centre of Africa
- Contact:
Re: How to delete a persistent cronjob
Yes. And there are instructions about it: firmware-faq/#cron
The Chief: Be sure to read the Firmware FAQ and do a Forum Search before posting!
No support via PM. Ask all questions on the open forum.
No support via PM. Ask all questions on the open forum.
Re: How to delete a persistent cronjob
Thank you.
...but now I have a problem with a very long command. It is not executed.
I think because the command string is too long to be contained in an evironmental variable.
The output of this command:
is:
instead the entire command should be:
Is there a way to put this command in a file script then execute that script?
...but now I have a problem with a very long command. It is not executed.
I think because the command string is too long to be contained in an evironmental variable.
The output of this command:
Code: Select all
getenv
Code: Select all
RT_cmd_ddns write_crontab.sh '*/5' '*' '*' '*' '*' 'wget -O - -q --read-timeout
Code: Select all
RT_cmd_ddns write_crontab.sh '*/5' '*' '*' '*' '*' 'wget -O - -q --read-timeout=0.0 --waitretry=5 --tries=400 --background http://freedns.afraid.org/dynamic/update.php?Long_string...'
Is there a way to put this command in a file script then execute that script?
Re: How to delete a persistent cronjob
Moreover, could you explain to me how to use the "onconnectWAN" command?
- thechief
- RouterTech Team
- Posts: 12067
- Joined: Wed Feb 01, 2006 10:22 pm
- Location: England, the Centre of Africa
- Contact:
Re: How to delete a persistent cronjob
Yes. Create a minix partition and put the script there. Read the firmware FAQ. If you name the script "startup.sh" on the minix partition (/nvram/)then it will be executed automatically each time the router boots up.bingel wrote:Is there a way to put this command in a file script then execute that script?
You don't.bingel wrote:Moreover, could you explain to me how to use the "onconnectWAN" command?
The Chief: Be sure to read the Firmware FAQ and do a Forum Search before posting!
No support via PM. Ask all questions on the open forum.
No support via PM. Ask all questions on the open forum.
Re: How to delete a persistent cronjob
I have only 2MB flash memory on my router and my firmware version is normal, not lite, so I think it is not possibile to create a minix filesystem (according to instructions).
...but have you any idea because the env variables can't be longer than a certain number of chars?
...but have you any idea because the env variables can't be longer than a certain number of chars?
- thechief
- RouterTech Team
- Posts: 12067
- Joined: Wed Feb 01, 2006 10:22 pm
- Location: England, the Centre of Africa
- Contact:
Re: How to delete a persistent cronjob
You are correct. You need the Lite version for that.bingel wrote:I have only 2MB flash memory on my router and my firmware version is normal, not lite, so I think it is not possibile to create a minix filesystem (according to instructions).
With the Adam2 bootloader, there is a limit of 80 characters. With the PSP bootloader, the limit is bigger (perhaps 128 characters or more).bingel wrote:...but have you any idea because the env variables can't be longer than a certain number of chars?
The Chief: Be sure to read the Firmware FAQ and do a Forum Search before posting!
No support via PM. Ask all questions on the open forum.
No support via PM. Ask all questions on the open forum.
Re: How to delete a persistent cronjob
Ok, thank you again.