I am trying to interpret the following shellscript and am having a very difficult time. Could one of you Unix gurus pleasssseeee help me out? You just won't know how much of a life saver you would be for me.
Thanks a million!!!!!!
Well, without going into a line by line
description, this script is apparently a
"whodo" script. Basically, it "maps" the logged
in userid's and tty's to specific processes,
hence "whodo" - "Who is doing what"
Thanks rwb1959 for replying. Unfortunately, that is just what I needed - a line by line description. I am trying to understand the various commands in Unix, but as I had stated I am having a terrible time doing it.
Location: Asia Pacific, Cyberspace, in the Dark Dystopia
Posts: 19,118
Thanks Given: 2,351
Thanked 3,359 Times in 1,878 Posts
Do you have an UNIX shell programming reference books? There is a tremendous value to reading the first few chapters on syntax, variables and other shell script constructs... .especially pipes and filters. Using chains of filters by 'piping' the output of one command into the input of another is a very powerful construct. When you understand this construct (the use of the little "|" pipe) your shell-life gets much easier.
Hi,
I am writing a shell script which will check the status of a resource in a cluster and then display nicely to a user running the script at command line.
Basically the script runs a status command and then pulls certain keywords from the return and then should display a concise status.
... (5 Replies)
Hi. I wonder what the equal sign in front of the answer means.
I have read man pages and googled but found no answer.
xntpdc -p
=15.5.64.3 15.5.2.51 3 512 377 0.02060 0.057426 0.04965Thanks.
Jan (1 Reply)
Hi, i was reading through a sample coding and came across this function, can anyone pls help to interpret the code for me. Thank alot
find_lines()
{
res=-1
if ; then
grep -i "$@" $FILENAME
res=$?
fi
return $res
} (2 Replies)
hi all,
when I run-
wcars1j5#netstat -an | grep 8090
127.0.0.1.8090 *.* 0 0 49152 0 LISTEN
wcars1j5#
1. does this mean that no one is connected to this port?
Regards,
akash (1 Reply)
We are currently using a script to copy the same encrypted password between our HP-UX and Solaris servers editing the trusted and shadow files directly. The encrypted password is only 13 characters long on both servers and decrypts the same way. Is there a way to copy this same string to Linux... (5 Replies)
Hi all,
I wanted to know the solaris way of interpreting devices?
I mean i understand all those c0t0....stuff but when i start mounting devices , most of the times i get either a I/O error or it says that the directory does not exist.
eg:
I have a external usb hub to which i have connected... (1 Reply)
Hi, I put an expiration on a few id's that I want to remove now. From the man page
-e expire Specify the future date on which a login can no
longer be used; after this date, no user will be
able to access this login. This option is useful
... (0 Replies)
We are having performance issues on an alpha4100 server.
I can't paste a snapshot of my vmstat in here, but...
We have 4gb of memory. The actual memory stays consistant around 306k. Free is dropping into the 120 area. Wire is around 206k consistantly. consistantly.
My manual says that unix... (3 Replies)