Another basic crontab question.

Post Reply
User avatar
Tha Tawa'S
Member
Posts: 89
Joined: 16 Jan 2010 04:49

Another basic crontab question.

Post by Tha Tawa'S »

Hi all,

i wrote a script named .cmatin
It works fine.
With mtcl's account, I also put it into crontab with crontab -e and it worked fine too unil the next CPU reboot like this :
55 06 * * * /DHS3bin/mtcl/.cmatin

Indeed, after each CPU reboot, the line into crontab disappears. i don't understand why. need help !
And if I edit crontab with root account, it does not work properly, I mean, rsult's command are not forwarded to temp files.

thank you.
User avatar
Tha Tawa'S
Member
Posts: 89
Joined: 16 Jan 2010 04:49

Re: Another basic crontab question.

Post by Tha Tawa'S »

I just add that I would prefer script works with mtcl's account instead of root account.
Best configuration regarding owner and perissions..

OXE version is R10.1.1-j2.603.35
User avatar
alex
Senior Member
Posts: 1458
Joined: 06 Jul 2004 07:27
Contact:

Re: Another basic crontab question.

Post by alex »

Use "cfgCron" command for editing crontab.
Write a script to filter incidents.
If it looks like a duck, swims like a duck, and quacks like a duck, then it probably is a duck.
User avatar
Tha Tawa'S
Member
Posts: 89
Joined: 16 Jan 2010 04:49

Re: Another basic crontab question.

Post by Tha Tawa'S »

Thank you Alex.
you have redirected me to one of my old post.... :)

Also, after test made on virtual machine, it seems that modify mtcl.cron then crontab -e works after reboot.

I will try cfgCron also.
User avatar
cavagnaro
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 7014
Joined: 14 Sep 2005 19:45
Location: Brasil, Porto Alegre
Contact:

Re: Another basic crontab question.

Post by cavagnaro »

:lol: :lol: :lol:
Ignorance is not the problem, the problem is the one who doesn't want to learn

OTUC/ICS ACFE/ACSE R3.0/4.0/5.0/6.0
Certified Genesys CIV 8.5
Certified Genesys Troubleshooting 8.5
Certified Genesys BEP 8.x
Genesys Developer
User avatar
alex
Senior Member
Posts: 1458
Joined: 06 Jul 2004 07:27
Contact:

Re: Another basic crontab question.

Post by alex »

Image
If it looks like a duck, swims like a duck, and quacks like a duck, then it probably is a duck.
User avatar
Tha Tawa'S
Member
Posts: 89
Joined: 16 Jan 2010 04:49

Re: Another basic crontab question.

Post by Tha Tawa'S »

:)
User avatar
frank
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 3169
Joined: 06 Jul 2004 00:18
Location: New York
Contact:

Re: Another basic crontab question.

Post by frank »

Every time you start the OXE, there are a ton of scripts that start too.
One of them make sure that there is no weird users created in /etc/passwd for example, and another one check the crontab for anything that was not setup manually, which is your case.
Code Free Or Die
User avatar
Tha Tawa'S
Member
Posts: 89
Joined: 16 Jan 2010 04:49

Re: Another basic crontab question.

Post by Tha Tawa'S »

Thanks for this precision
Post Reply

Return to “Linux tricks”