Sponsored Content
Full Discussion: Reboot User's workstation
Top Forums Shell Programming and Scripting Reboot User's workstation Post 302092457 by lweegp on Tuesday 10th of October 2006 03:43:56 AM
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
 

9 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

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

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

7. 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

8. 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

9. 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
UNBUFFER(1)						      General Commands Manual						       UNBUFFER(1)

NAME
unbuffer - unbuffer output SYNOPSIS
unbuffer program [ args ] INTRODUCTION
unbuffer disables the output buffering that occurs when program output is redirected from non-interactive programs. For example, suppose you are watching the output from a fifo by running it through od and then more. od -c /tmp/fifo | more You will not see anything until a full page of output has been produced. You can disable this automatic buffering as follows: unbuffer od -c /tmp/fifo | more Normally, unbuffer does not read from stdin. This simplifies use of unbuffer in some situations. To use unbuffer in a pipeline, use the -p flag. Example: process1 | unbuffer -p process2 | process3 CAVEATS
unbuffer -p may appear to work incorrectly if a process feeding input to unbuffer exits. Consider: process1 | unbuffer -p process2 | process3 If process1 exits, process2 may not yet have finished. It is impossible for unbuffer to know long to wait for process2 and process2 may not ever finish, for example, if it is a filter. For expediency, unbuffer simply exits when it encounters an EOF from either its input or process2. In order to have a version of unbuffer that worked in all situations, an oracle would be necessary. If you want an application-specific solution, workarounds or hand-coded Expect may be more suitable. For example, the following example shows how to allow grep to finish pro- cessing when the cat before it finishes first. Using cat to feed grep would never require unbuffer in real life. It is merely a place- holder for some imaginary process that may or may not finish. Similarly, the final cat at the end of the pipeline is also a placeholder for another process. $ cat /tmp/abcdef.log | grep abc | cat abcdef xxxabc defxxx $ cat /tmp/abcdef.log | unbuffer grep abc | cat $ (cat /tmp/abcdef.log ; sleep 1) | unbuffer grep abc | cat abcdef xxxabc defxxx $ BUGS
The man page is longer than the program. SEE ALSO
"Exploring Expect: A Tcl-Based Toolkit for Automating Interactive Programs" by Don Libes, O'Reilly and Associates, January 1995. AUTHOR
Don Libes, National Institute of Standards and Technology 1 June 1994 UNBUFFER(1)
All times are GMT -4. The time now is 04:55 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy