Reboot User's workstation


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Reboot User's workstation
# 1  
Old 10-10-2006
Reboot User's workstation

Hi Gurus,

I'm trying to write a script right to reboot all my user's workstation over this weekend.

I'm kind of stuck here right now. I know the command to reboot ie init 6 but how to include all the users in my script?

thanks

wee Smilie
# 2  
Old 10-10-2006
If you know the workstation IPs/hostname ; you can use rsh command. Iam not sure but you can try.
# 3  
Old 10-10-2006
Quote:
Originally Posted by samsam
If you know the workstation IPs/hostname ; you can use rsh command. Iam not sure but you can try.
This is how my script will look like

#!/bin/ksh

> /tmp/rebootip

for i in `cat /tmp/ip` [U]--> this is where all the user's ip address will be stored[/U]
do
if [ "`ping $i 1 | grep alive`" != "" ]
then
echo $i >> /tmp/rebootip
fi
done

for i in `cat /tmp/rebootip`
do
sync
sync
sync
init 6
done

is this correct? or i need to use rsh to remotely log in to reboot? thanks samsam Smilie

wee
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. AIX

Please help: workstation broken?

I have buy an used Workstation intellistation power5 IBM. But doesn't work. How to turn on? I try to connect network asmi take the ip ping is ok telnet ok but if i try to connect to a browser give me timeout The display give me a yellow sign ! and error B150F22A Someone can help... (2 Replies)
Discussion started by: Linusolaradm1
2 Replies

2. Shell Programming and Scripting

How to run script automatically on reboot as root user?

Hi friends,,, I am running one server on Ubuntu 12.04 LTS 32-bit, some times my pc restarts automatically, with no reason, I have a script to start server which requires root password. in this directory /myserver/start_server.sh How can I do this ? and some scripts I am having that I... (1 Reply)
Discussion started by: Akshay Hegde
1 Replies

3. Linux

vmware workstation

i have following :- fedora 16 x 64bit kernel 3.2.7-1 vmware workstation 8.0.2. Steps to install vmware workstation to access ESX machine 1- sh vmware name.bundle 2- setup started and completed with out any warning. 3- when i type "vmware " then "VMware Module Updater Started" and the... (2 Replies)
Discussion started by: engrtahir2007
2 Replies

4. Solaris

NIS on vmware workstation

Hi Admins, I just have a doubt on NIS that, is it possible to run NIS on vmware workstation running more than 1 solaris instances. i.e. can we setup one solaris instance as master and others as slaves...?? I have vista on my laptop. I am concern about the domain name it will ask while... (8 Replies)
Discussion started by: snchaudhari2
8 Replies

5. Solaris

Setting up a new workstation

Hi all, I'm about to build a new workstation and was thinking about running Solaris 10 on it. First the hardware: AMD opteron 2.2Ghz dual Core 2GB RAM Nvidia Quadro FX1400 SATA 2x250GB HDD 2x Eizo S1911 Monitors Will Solaris handle the dualscreens or will i have to use only one? Also,... (6 Replies)
Discussion started by: Timmy66
6 Replies

6. Solaris

different between soft reboot and hard reboot

Hi Guru's Can any want here could explain to me the different between soft reboot and hard reboot . Best Regards Seelan (3 Replies)
Discussion started by: seelan3
3 Replies

7. UNIX for Dummies Questions & Answers

I want to reset my workstation!

I am having an error in my workstation. I want to reset it and start from scratch. I also want to add a 120 G. Drive to my workstation. I checked out a book at my local library on unix. I still can't figure out how to erase everything and install this drive,please help. (4 Replies)
Discussion started by: Sotelo_27
4 Replies

8. UNIX for Dummies Questions & Answers

HP UX workstation?

Hi, I want to learn more about HP UX and I want to purchase an HP UX workstation to further my self studying. Which is a good model and where can I purchase a used system? thanks so much, (2 Replies)
Discussion started by: xNYx
2 Replies

9. Filesystems, Disks and Memory

emulations in workstation...

i have a network with Windows NT 4.0, and now i will install a UNIX server. Bud my workstation are in NT Workstation 4.0. I don't know about this installation. how do i for this connection. have i to use workstation emulation? please, help me!!! ASAP. Thanks (1 Reply)
Discussion started by: rmilano
1 Replies
Login or Register to Ask a Question