Reset board everyday at 5 am

Did you say hacking ?
ortega

Reset board everyday at 5 am

Post 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.
krzysioD

Re: Reset board everyday at 5 am

Post by krzysioD »

crontab -l
crontab -e
for start,

iirc it was a cronCfg ? Sorry, memoria fragilis...
User avatar
alex
Senior Member
Posts: 1498
Joined: 06 Jul 2004 07:27
Contact:

Re: Reset board everyday at 5 am

Post by alex »

It is UNIX question, not 4400 question.

Code: Select all

man cron
If 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

Post 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.
Gedeon

Re: Reset board everyday at 5 am

Post 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.
ortega

Re: Reset board everyday at 5 am

Post by ortega »

OK. Thanks for the advice.
hojzle

Re: Reset board everyday at 5 am

Post 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
cavagnaro

Re: Reset board everyday at 5 am

Post by cavagnaro »

Should be the same, have you tried at least?
hojzle

Re: Reset board everyday at 5 am

Post by hojzle »

No I didn't.

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

Best regards
mmt1359

Re: Reset board everyday at 5 am

Post by mmt1359 »

very good
:)
Post Reply

Return to “System Hacking”