Page 1 of 3

Reset board everyday at 5 am

Posted: 05 Mar 2009 06:56
by ortega
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.

Re: Reset board everyday at 5 am

Posted: 05 Mar 2009 07:38
by krzysioD
crontab -l
crontab -e
for start,

iirc it was a cronCfg ? Sorry, memoria fragilis...

Re: Reset board everyday at 5 am

Posted: 06 Mar 2009 17:43
by alex
It is UNIX question, not 4400 question.

Code: Select all

man cron

Re: Reset board everyday at 5 am

Posted: 09 Mar 2009 07:41
by ortega
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.

Re: Reset board everyday at 5 am

Posted: 10 Mar 2009 04:02
by Gedeon
Then I entered in superusermode
Gave the command crontab and entered the line
0 7 * * * /usr2/mtcl/resetbra >> /usr2/mtcl/logreset.txt
Don't use root account for tool commands.
You can have problems after to acces files (ie database, account files, etc...).
Use only mtcl (or mtch) account for this.

G.

Re: Reset board everyday at 5 am

Posted: 10 Mar 2009 08:18
by ortega
OK. Thanks for the advice.

Re: Reset board everyday at 5 am

Posted: 06 Jul 2009 15:20
by hojzle
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

Re: Reset board everyday at 5 am

Posted: 07 Jul 2009 10:56
by cavagnaro
Should be the same, have you tried at least?

Re: Reset board everyday at 5 am

Posted: 07 Jul 2009 17:01
by hojzle
No I didn't.

I'll try it and let you know the result.

Best regards

Re: Reset board everyday at 5 am

Posted: 04 Feb 2011 09:49
by mmt1359
very good
:)