07-19-2010
Shutdown the Linux server if no one is using the server
Hi All,
I want to shutdown the server if no one is actualy using it. Its a linux server.
I thought of sending a msg on users terminal for those who all are logged in and expecting a input from them.
If they will reply system should not get shutdown else it should not.
Can any one help me on this. How can i implement this using Shell scripting.
Thanks in advance.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
SCO Unixware 7.1.1
Hi friends,
At 11:30pm last night mymain Unix Server hung or rebooted (Unaware which one), and was bot available for 10 minutes. Is there a log file somewhere which will tell me what happened ?
I have looked ad /var/adm/syslog, but cannot make head nor tail of it.
... (1 Reply)
Discussion started by: sureshy
1 Replies
2. UNIX for Advanced & Expert Users
Hi,
how to shutdown a unix machine ?
We are on SunOS server15.8 Generic_108528-24 sun4u sparc SUNW,Ultra-Enterprise
Many thanks. (2 Replies)
Discussion started by: big123456
2 Replies
3. UNIX for Advanced & Expert Users
Virtually no UNIX admin experience. Any admin duties are shared by several folks with no special training. Today we had our Sun v880 server, running Solaris 5.8, shutdown for no apparent reason.
When we checked on server we found it completely powered down, yet still connected to a fully... (6 Replies)
Discussion started by: buechler66
6 Replies
4. AIX
Hi Guys,
Please help in this...when we start HACMP services ..server is getting shutdon.
Error mesg from cluster.log.
Apr 14 08:43:27 bascop17 snmpd: NOTICE: SMUX trap: (0 0) (127.0.0.1+46302+1)
Apr 14 08:43:33 bascop17 topsvcs: (Recorded using libct_ffdc.a cv 2):::Error ID:... (1 Reply)
Discussion started by: b_manu78
1 Replies
5. UNIX for Advanced & Expert Users
Dear all,
My server has shutdown frequently.
It is AMD64, OS is RHEL 4 U5.
I've seen the system log, before the shutdown occured:
Jul 29 04:28:56 localhost kernel: EDAC k8 MC0: general bus error: participating processor(local node response), time-out(no timeout) memory transaction... (2 Replies)
Discussion started by: mr_bold
2 Replies
6. Shell Programming and Scripting
I have a unix server through which some ten client machines are connected. I want to shutdown/restart all the machine from the server through the shell script during the particular time of the day. I welcome your suggestions.
Thanks in advance.
With regards
Victor (1 Reply)
Discussion started by: mvictorvijayan
1 Replies
7. Solaris
I have a sparc T1 server (I know its old) running Solaris 8, which we use for testing. It has been very slow in response- prompt takes couple of minutes to come up, so I decided to reboot the server but I can reboot it, it is giving following errors when I try to shutdown it down.
root@deva:/#... (3 Replies)
Discussion started by: Tirmazi
3 Replies
8. Solaris
Are rc scripts executed serially or all at the same time. Is there a way to see this happen? A log file or the syslogd?
This is Solaris 10. (2 Replies)
Discussion started by: djehresmann
2 Replies
9. AIX
Hi,
is it possible to find out ip address of user who has shutdown or rebooted the server , I have used the command errpt -a , in that it is showing server rebooted but it is not showing ip address who has shutdown the serve, even I have used command last reboot.
Please suggest.
Regards,
... (3 Replies)
Discussion started by: manoj.solaris
3 Replies
10. Homework & Coursework Questions
Hi my name is Manju.
->I have configure the two way authentication on my linux server.
->Now I am able to apply two way authenticator on particuler user.
->Now I want to map this linux server to my AD server.
->Kindly tell me how to map AD(Active Directory) with this linux server.
... (2 Replies)
Discussion started by: manjusharma128
2 Replies
LEARN ABOUT HPUX
hylafax-shutdown
HYLAFAX-SHUTDOWN(5) File Formats Manual HYLAFAX-SHUTDOWN(5)
NAME
etc/shutdown - server shutdown control file
DESCRIPTION
If the file etc/shutdown is present it describes when a HylaFAX server is to be shutdown and may contain a descriptive message to return to
clients explaining the reason for the shutdown. This file is used by the hfaxd(8) program.
The file has the following format:
<year> <month> <day> <hour> <minute> <deny> <disconnect>
<shutdown message text>
The first line defines the date and time the server should be shutdown and the time preceding at which unprivileged clients should be
denied service or disconnected; these fields are described in more detail below. Any lines that follow the first are taken as the text of
a message to return to clients when notifying them of a scheduled shutdown or when denying them service.
<year> The decimal year; e.g. 1996.
<month> The decimal month; e.g. 10 for October.
<day> The decimal day of the month in the range [1..31].
<hour> The decimal hour since midnight; in the range [0..23].
<minute> The decimal minute after the hour; in the range [0..59].
<deny> The time prior to the shutdown time at which to deny service to unprivileged clients. This value is specified as decimal number
in the form HHMM; e.g. 130 for 1 hour and 30 minutes.
<disconnect>
Time time prior to the shutdown time at which to disconnect unprivileged clients that are logged in to the server. This value is
specified as a decimal number in the form HHMM.
NOTES
This file is typically created using the ``SHUT'' command supported by hfaxd(8).
SEE ALSO
hfaxd(8), hylafax-server(5)
January 18, 1996 HYLAFAX-SHUTDOWN(5)