Reset board everyday at 5 am
-
ortega
Reset board everyday at 5 am
Hi!
I want to make an automatic reset to a board everyday at 5 am.
I made the script resetbra
#! /bin/sh
tool rstcpl 0 15
This is working. Now I want to call this script everyday at 5 am so I need to put it in the crontab.
But I don't know how to put it in the crontab (which file?) because it's a Release 3.2.
Any help?
Thanks in advance.
I want to make an automatic reset to a board everyday at 5 am.
I made the script resetbra
#! /bin/sh
tool rstcpl 0 15
This is working. Now I want to call this script everyday at 5 am so I need to put it in the crontab.
But I don't know how to put it in the crontab (which file?) because it's a Release 3.2.
Any help?
Thanks in advance.
-
krzysioD
Re: Reset board everyday at 5 am
crontab -l
crontab -e
for start,
iirc it was a cronCfg ? Sorry, memoria fragilis...
crontab -e
for start,
iirc it was a cronCfg ? Sorry, memoria fragilis...
Re: Reset board everyday at 5 am
It is UNIX question, not 4400 question.
Code: Select all
man cronIf it looks like a duck, swims like a duck, and quacks like a duck, then it probably is a duck.
-
ortega
Re: Reset board everyday at 5 am
man cron
man: not found
I'm in a release 3.2.
It's not only Unix. There's issues. I couldn't call the command rstcpl directly (it's not a Unix command).
It's working. Here's how I did it, for future reference:
in /usr2/mtcl i created the text file resetbra:
#!/bin/sh
date
/usr2/oneshot/mtcl/tool rstcpl 0 15
then I gave it permission to execute
chmod 777 resetbra
Then I entered in superusermode
Gave the command crontab and entered the line
0 7 * * * /usr2/mtcl/resetbra >> /usr2/mtcl/logreset.txt
ctrl+d to exit the edition of crontab
crontab -l shows the crontab file.
And everyday at 7 Am a reset is being made to the Bra card in the slot 0-15. The date and time of the reset is put in the log file logreset.txt.
Thanks for your answers and your help.
man: not found
I'm in a release 3.2.
It's not only Unix. There's issues. I couldn't call the command rstcpl directly (it's not a Unix command).
It's working. Here's how I did it, for future reference:
in /usr2/mtcl i created the text file resetbra:
#!/bin/sh
date
/usr2/oneshot/mtcl/tool rstcpl 0 15
then I gave it permission to execute
chmod 777 resetbra
Then I entered in superusermode
Gave the command crontab and entered the line
0 7 * * * /usr2/mtcl/resetbra >> /usr2/mtcl/logreset.txt
ctrl+d to exit the edition of crontab
crontab -l shows the crontab file.
And everyday at 7 Am a reset is being made to the Bra card in the slot 0-15. The date and time of the reset is put in the log file logreset.txt.
Thanks for your answers and your help.
-
Gedeon
Re: Reset board everyday at 5 am
Don't use root account for tool commands.Then I entered in superusermode
Gave the command crontab and entered the line
0 7 * * * /usr2/mtcl/resetbra >> /usr2/mtcl/logreset.txt
You can have problems after to acces files (ie database, account files, etc...).
Use only mtcl (or mtch) account for this.
G.
-
hojzle
Re: Reset board everyday at 5 am
Hello,
I would also like to reset PRA board automaticaly every day at 5am.
Can you please tell how to do it for release 8.0.1.
Best regards
I would also like to reset PRA board automaticaly every day at 5am.
Can you please tell how to do it for release 8.0.1.
Best regards
-
hojzle
Re: Reset board everyday at 5 am
No I didn't.
I'll try it and let you know the result.
Best regards
I'll try it and let you know the result.
Best regards
