02-03-2010
just write a script that does the shutdown for you...
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
NT CONSULTANT IS NEAR TOTAL UNIX NEWBIE! Please help!
I would like detailed info about how to remotely connect a PC running win'98 that is not on a local network to a unix server which is locally networked to other PCs?
Would like to know how to:
Move files back and forth?
Mount... (2 Replies)
Discussion started by: Kagor
2 Replies
2. UNIX for Advanced & Expert Users
hi,
could anyone tell me that how can i use a remote CD drive for installing solaris , cause my local Drive has peroblem.
tell me the steps one by one.
Rgrds,
nikk:confused: (6 Replies)
Discussion started by: nikk
6 Replies
3. Shell Programming and Scripting
I need to rsh to many machines and run an " if statement' that checks the versions of the OS and if up to date it tee -a to a file called "uptodate"..then if not update, it tee -a to file called "notuptodate" on my machine
the command that checks the version is cat /etc/version.
now the output... (1 Reply)
Discussion started by: dxrmroue
1 Replies
4. Shell Programming and Scripting
Hello,
We have a domain where instances attached to it are in multiple machines. Is there any way that I can get the process information of the domain of a secondary server from the primary.
ssh authentication is enabled on the functional ID and if I scsu to that ID and do the ssh: $ssh machine2... (0 Replies)
Discussion started by: chiru_h
0 Replies
5. Shell Programming and Scripting
Hi All,
I have a script to be executed in another machine. I connect to that machine from another server as a root ( this is the only configured access, as i cannot log in as a normal user). After that I have to switch to a normal user and that I can be able to executge that script. But all this... (12 Replies)
Discussion started by: elthox
12 Replies
6. Shell Programming and Scripting
I need to upload tar or zip files to a unix server than unzip or untar them remotely. Any suggestions on the easiest way to do the remote untar or unzip? For example does someone know of a cgi script or something?
Thanks -jz (3 Replies)
Discussion started by: jwzumwalt
3 Replies
7. Shell Programming and Scripting
Hi there
I am trying to add up the disk space used on a remote linux box but am falling at the first hurdle i.e isolating the 'space used' column with df -k on the remote box
if i run this, i get the df -k output as expected
# rsh remote-server 'df -k|grep sd|grep -v boot'
/dev/sda3 ... (8 Replies)
Discussion started by: hcclnoodles
8 Replies
8. UNIX for Dummies Questions & Answers
I have Oracle 9i R2 on AIX 5.2. My Database is running in shared server mode (MTS).
Sometimes when I shutdown the database it shutsdown cleanly in 4-5 mints and sometimes it takes good 15-20 minutes and then I get some ora-600 errors and only way to shutdown is by opening another session and... (7 Replies)
Discussion started by: aixhp
7 Replies
9. What is on Your Mind?
I have been wondering how do Systems Administrators do the jump into Systems Engineering? Is it only a matter of time and experience or could I actually help myself get there?
Opinions? Books I could read?
Thanks a lot for your help! (0 Replies)
Discussion started by: svalenciatech
0 Replies
10. Solaris
Hello. I am trying to ssh and run a script from a remote computer. These computers will be both Windows and MACs. I am using Solaris 8 and what I have tried is:
using putty
ssh user@ip_address (remote command) /folder/folder/filename.sh
The issue here is that the user profile has not... (3 Replies)
Discussion started by: jkmtm
3 Replies
LEARN ABOUT OPENSOLARIS
shutdown
shutdown(1B) SunOS/BSD Compatibility Package Commands shutdown(1B)
NAME
shutdown - close down the system at a given time
SYNOPSIS
/usr/ucb/shutdown [-fhknr] time [warning-message]...
DESCRIPTION
shutdown provides an automated procedure to notify users when the system is to be shut down. time specifies when shutdown will bring the
system down; it may be the word now (indicating an immediate shutdown), or it may specify a future time in one of two formats: +number and
hour:min. The first form brings the system down in number minutes, and the second brings the system down at the time of day indicated in
24-hour notation.
At intervals that get closer as the apocalypse approaches, warning messages are displayed at terminals of all logged-in users, and of users
who have remote mounts on that machine.
At shutdown time a message is written to the system log daemon, syslogd(1M), containing the time of shutdown, the instigator of the shut-
down, and the reason. Then a terminate signal is sent to init, which brings the system down to single-user mode.
OPTIONS
As an alternative to the above procedure, these options can be specified:
-f Arrange, in the manner of fastboot(1B), that when the system is rebooted, the file systems will not be checked.
-h Execute halt(1M).
-k Simulate shutdown of the system. Do not actually shut down the system.
-n Prevent the normal sync(2) before stopping.
-r Execute reboot(1M).
FILES
/etc/rmtab remote mounted file system table
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWscpu |
+-----------------------------+-----------------------------+
SEE ALSO
fastboot(1B), login(1), halt(1M), reboot(1M), syslogd(1M), sync(2), rmtab(4), attributes(5)
NOTES
Only allows you to bring the system down between now and 23:59 if you use the absolute time for shutdown.
SunOS 5.11 11 Oct 1994 shutdown(1B)