02-01-2011
Quote:
Originally Posted by
pinga123
Working fine for above code but if one of the file has empty line then above code output nothing.
Do you means there're always say 4 machines and you wanna output the un-boot machine?
10 More Discussions You Might Find Interesting
1. UNIX Desktop Questions & Answers
I have an Ultra5 with 2.56 that is connected to a network. We don't use a proxy server on the network but access the internet directly through a gateway. How do I configure the Solaris box to see the internet?
Opening the internet explorer and setting HTTP; FTP etc ports to the ip of the... (3 Replies)
Discussion started by: FattyLumpkin
3 Replies
2. HP-UX
Hi friends
i dont know whether it is the right forum to ask this or not. if its not please excuse me and please give me the link for such a forum.
i am novice about HP 9000 rp3410 server and its things but i had to install and configure it. I came to know that it doesnot comes with builtin... (4 Replies)
Discussion started by: bnaravinda
4 Replies
3. Shell Programming and Scripting
Hello all
while writing a small script , i got stuck with this simple thing.Hope you guyz can help.
Iam trying to read password
echo"enter password"
read $pwd
now i have to check this
echo"enter password to proceed"
read $pwd
now i have to check both the values of the... (2 Replies)
Discussion started by: coolkid
2 Replies
4. Programming
Hi all,
I am a newbie to unix programming using C..
So i would like to have a few simple C programs to start off with..
I wanted programs on learning ,
abort,kill and raise,alarm and pause,I would also like to know how to use the vfork() in a prg
It would be really great if i can have... (1 Reply)
Discussion started by: wrapster
1 Replies
5. Shell Programming and Scripting
Hi,
Can i get some help from any of you guyz on writing Unix script.
my requirement is like reading a csv file, finding a specific pattern in the lines and repalce the string with new string and write it to another file.
My file is file ABC123.dat
Col1,Col2,Col3
102628,AB10 0,21... (2 Replies)
Discussion started by: prashant_jsw
2 Replies
6. Shell Programming and Scripting
i have two file and i am comparing both..
in cmp1 ,the content is :
the nu of file is : <some integer value>
in cmp2 ,the content is :
the nu of file is :
so want a script which will take value (2) when cmp1 is compared with cmp2..
i mean cmp cmp1 cmp2 the the output will be
he nu of... (1 Reply)
Discussion started by: Aditya.Gurgaon
1 Replies
7. Shell Programming and Scripting
Hi,
I am newbie in shell scripting
I have a file name like simple.txt which comes from Mainframe systems onto windows dir every 15 minutes daily. File name is same. Every 15 minutes it updates.
I need to write shell script to check if the file arrived every 15 min or not.
If the new file... (4 Replies)
Discussion started by: chinniforu2003
4 Replies
8. Shell Programming and Scripting
Hello everyone!
I have a small text file called processes.txt which contains a few lines in this fashion:
ID: 35; Arrival_Time: 0; Total_Exec_Time: 4;
ID: 36; Arrival_Time: 1; Total_Exec_Time: 6;
I am trying to figure out how I can get the values from between the delimiters ';' and ':' per... (16 Replies)
Discussion started by: mehungry
16 Replies
9. Shell Programming and Scripting
Hi,
Newbie to Linux needing some help with scripting, here. I've written a script that allows easily shutting down, rebooting, or exiting to terminal mode via a Dialog menu after logging out of X-server. In my .bash_profile I have startx followed by running my script, shutdownmenu.sh, and it... (1 Reply)
Discussion started by: Pop45398
1 Replies
10. UNIX for Dummies Questions & Answers
Hi,
I need shell script to compare the two files based on certain fields and output should contains the required fields based on result.pls find sample input files and required output
file 1
COUNT, BNG_IP,PORT,OVLAN
22 , 10.238.60.129,1/1,2009
144 , 10.238.60.129,1/1,2251
... (5 Replies)
Discussion started by: surender reddy
5 Replies
rwho(1) General Commands Manual rwho(1)
NAME
rwho - show who is logged in on local machines
SYNOPSIS
DESCRIPTION
produces output similar to the output of the HP-UX command for all machines on the local network that are running the daemon (see who(1)
and rwhod(1M)). If has not received a report from a machine for 11 minutes, assumes the machine is down and does not report users last
known to be logged into that machine.
output line has fields for the name of the user, the name of the machine, the user's terminal line, the time the user logged in, and the
amount of time the user has been idle. Idle time is shown as:
If a user has not typed to the system for a minute or more, reports this as idle time. If a user has not typed to the system for an hour
or more, the user is omitted from output unless the flag is given.
An example output line from would look similar to:
This output line could be interpreted as is logged into and his terminal line is has been logged on since September 12 at 13:28 (1:28
p.m.). has not typed anything into for 11 minutes.
WARNINGS
output becomes unwieldy when the number of users for each machine on the local network running becomes large. One line of output occurs
for each user on each machine on the local network that is running
AUTHOR
was developed by the University of California, Berkeley.
FILES
Information about other machines.
SEE ALSO
ruptime(1), rusers(1), rwhod(1M).
rwho(1)