Another basic crontab question.

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

Another basic crontab question.

Post by Tha Tawa'S » 14 Apr 2015 01:14

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: 85
Joined: 16 Jan 2010 04:49

Re: Another basic crontab question.

Post by Tha Tawa'S » 14 Apr 2015 01:24

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: 1328
Joined: 06 Jul 2004 07:27
Location: Russia
Contact:

Re: Another basic crontab question.

Post by alex » 14 Apr 2015 05:10

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: 85
Joined: 16 Jan 2010 04:49

Re: Another basic crontab question.

Post by Tha Tawa'S » 14 Apr 2015 16:27

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: 6968
Joined: 14 Sep 2005 19:45
Location: Brasil, Porto Alegre
Contact:

Re: Another basic crontab question.

Post by cavagnaro » 14 Apr 2015 18:48

: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: 1328
Joined: 06 Jul 2004 07:27
Location: Russia
Contact:

Re: Another basic crontab question.

Post by alex » 15 Apr 2015 03:16

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: 85
Joined: 16 Jan 2010 04:49

Re: Another basic crontab question.

Post by Tha Tawa'S » 15 Apr 2015 15:57

:)

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

Re: Another basic crontab question.

Post by frank » 22 May 2015 08:40

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: 85
Joined: 16 Jan 2010 04:49

Re: Another basic crontab question.

Post by Tha Tawa'S » 24 May 2015 03:01

Thanks for this precision

Post Reply

Return to “Linux tricks”