Shutdown on pre-Defined Date

User avatar
swinstation
Member
Posts: 458
Joined: 21 Mar 2009 17:14
Location: Alcatel world

Post by swinstation »

please help us,I need that too,shutdown oxe on special date
vad
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 3806
Joined: 23 Sep 2004 06:47

Post by vad »

Search in old forum "crontab", as I remember was some examples.
User avatar
swinstation
Member
Posts: 458
Joined: 21 Mar 2009 17:14
Location: Alcatel world

Post by swinstation »

we can use this command I think it is useful:

example :22:00 20 Jan
login as root:
>at 2200 Jan 20
>shutdown -h
>enter
ctrl+d
after that run this command:
/etc/init.d/atd start

you can see view/remove job with:
atq=view
atrm=remove
I hope that i said be useful.
User avatar
GembuL
Member
Posts: 16
Joined: 01 Jan 2009 06:02
Location: Indonesia
Contact:

Post by GembuL »

just add to your crontab file: a b c d e root /sbin/shutdown -h now
a: Minutes (0-59)
b: Hour (0-23)
c: Day of Month (1-31)
d: Month (1-12)
e: Day of week (0-6) sunday=0
User avatar
daniel.ramirez
Member
Posts: 3
Joined: 23 Aug 2010 19:59

Post by daniel.ramirez »

check for more options here: http://en.wikipedia.org/wiki/Crontab

I just hope you have the right to turn the box off, I mean SLA documents signed and approved by your customer, situation could turn ugly real fast. What about just not giving them any more support, but let them make phonecalls man!
User avatar
Mr T
Member
Posts: 134
Joined: 26 Feb 2010 16:56
Location: US

Post by Mr T »

what about just not giving them any more support, but let them make phonecalls man!
lol....:)

Yeah, that wouldn't fly in the US. If I buy my system and you shut it down because I don't want to pay your for support, you just landed yourself in court, especially if I lost business due to the down time.
prasad0777
Member
Posts: 66
Joined: 17 Nov 2008 11:08

Post by prasad0777 »

Keep remote login ... it's simple as that
ACFE OXE R 10
ACFE ICS R 6.5
ACPS OpenTouch
ACPS Data
krzysioD
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 1165
Joined: 30 Aug 2006 13:43
Location: Europe, Poland

Post by krzysioD »

Guys, why is that, you turn this nice piece of equipment to some 'shutdown if no payment' machine ? If you do that, well, next answer for your questions should be:
- pay for training
- buy some books
- make LABO, test yourself
etc.. We should always help customers, if they pay. If they don't well, just don't help them. Wait. Something will force them to buy SLA next time, when they reach a 48+ hours of downtime...
prasad0777
Member
Posts: 66
Joined: 17 Nov 2008 11:08

Post by prasad0777 »

Yes that's true. But it's deferent one part of the world to other. if you consider EU, customers are always willing pay even they don't have any service. But not in everywhere. But still it's rude to shutdown system if customer not paid.
ACFE OXE R 10
ACFE ICS R 6.5
ACPS OpenTouch
ACPS Data
User avatar
freedom
Member
Posts: 296
Joined: 06 Feb 2006 15:22
Location: The Netherlands
Contact:

Post by freedom »

Don't you think the customer will just startup the pbx again after you shut it down?
Perhaps it's better to get/keep remote access and when the SLA ends, remove the license file and restart the system.
The customer will get limited features and is sure to call you for assistance....
Post Reply

Return to “Linux tricks”