I am regular Solaris user. I came across a weird problem that puzzled me. Hope you guys can help. I found that process's state(command & arguments) in two different variants of ps command is different. Can anyone explain how is this possible?
Thanks in advance for your guidance and support.
Brijesh
---------- Post updated at 06:03 AM ---------- Previous update was at 03:40 AM ----------
On further investigation I found that there are 17 light wait processes generated for syseventd daemon. One of them is going to state 'Z'. I compared it with another Solaris machine, it was happening there as well.
just setup a new system today - 9117 570, using HMC for console but not partitioned.
I installed this system twice. the first time it started off as 5300-00, then updated to ML03. before the update, I believe I mirrored the rootvg, and then altered the bootlist, at that point, the display was... (4 Replies)
#!/bin/bash
INPUT=$1
if
then
INPUT=0$1
TRACKNUMBER=$INPUT
fi
TRACKNUMBER=$INPUT
echo "Track Number:" $TRACKNUMBER
if
then
echo "File Does Not Exist!: split-track"${TRACKNUMBER}".wav"
exit 0
fi
CUEFILE="$2" (6 Replies)
hi all,
have a ksh script which connects to a database and runs a sql and dumps it to a '.csv' file. The problem is the result is in multiple rows with long spaces in between when it should be just a single line and this screws up the format in the '.csv' file.
script is :
#!/bin/ksh... (1 Reply)
Hi,
Anyone knows why I can't display the contents of my directory and how to fix this?
http://i50.tinypic.com/4smfth.jpg
Thanks in advance for any advise.
Deanne
Double post. Continued here. (0 Replies)
My script-
result=""
times()
{
echo "inside the times function"
result=8
echo "Inside function $result"
return $result
}
result=$(times)
echo "the value is "$?
echo "the value of result $result"
when I run I get this, why the value still remain 0.
$ ./func
the value is 0
the value... (5 Replies)
This script is giving weird output
#!/bin/bash
NETPATH=(`/bin/traceroute -n 4.2.2.2 | awk '{print $2}'`)
for i in "${NETPATH}"
do
echo $i
done
The output:
to
11.11.11.1
1.1.1.1
99.111.208.2
traceroute_test.sh
traceroute_test.sh (7 Replies)
Hi,
I'm trying to write a script to download RedHat's errata digest.
It comes in a txt.gz format, and i can get it easily with firefox.
HOWEVER: output is VERY strange when donwloading it in a script. It seems I'm getting a file of the same size - but partially text and partly binary! It... (5 Replies)
Hello;
Am trying to correct the formatting of tail output over ssh.
Using the following code:
echo "" > $FILE
for BOX in $SERVERS
do
echo "Processing on $BOX" |tee -a $FILE
echo "===============================" >> $FILE
sudo ssh $BOX 'TERMINAL="vt100" /usr/bin/sh -s' <... (2 Replies)
Hello folks,
I've found an HP-UX server with a rare 'ls -l' output. Please see the attached file.
Anybody knows how can I change the output to not have this extra tabulations?
Thanks in advance! (10 Replies)
Hi Members,
I'm confused with grep -F option. Goal is to get all the lines from file2 that have exact gene name from gene list (file one).
File one has list of genes:
File two has lot more information pertinent to genes in file one:
I use three following commands:
1)
grep -wf gene... (9 Replies)
Discussion started by: genome
9 Replies
LEARN ABOUT NETBSD
lastcomm
LASTCOMM(1) BSD General Commands Manual LASTCOMM(1)NAME
lastcomm -- show last commands executed in reverse order
SYNOPSIS
lastcomm [-w] [-f file] [command ...] [user ...] [terminal ...]
DESCRIPTION
lastcomm gives information on previously executed commands. With no arguments, lastcomm prints information about all the commands recorded
during the current accounting file's lifetime.
Option:
-f file Read from file rather than the default accounting file.
-w Use as many columns as needed to print the output instead of limiting it to 80.
If called with arguments, only accounting entries with a matching command name, user name, or terminal name are printed. So, for example:
lastcomm a.out root ttyd0
would produce a listing of all the executions of commands named a.out by user root on the terminal ttyd0.
For each process entry, the following are printed.
o The name of the user who ran the process.
o Flags, as accumulated by the accounting facilities in the system.
o The command name under which the process was called.
o The amount of cpu time used by the process (in seconds).
o The time the process started.
o The elapsed time of the process.
The flags are encoded as follows: ``S'' indicates the command was executed by the super-user, ``F'' indicates the command ran after a fork,
but without a following exec(3), ``C'' indicates the command was run in PDP-11 compatibility mode (VAX only), ``D'' indicates the command
terminated with the generation of a core file, and ``X'' indicates the command was terminated with a signal.
The ``S'' and ``C'' flags are no longer recorded by the system, but will be reported by lastcomm when reading from an accounting file gener-
ated by an older version of the system.
FILES
/var/account/acct Default accounting file.
SEE ALSO last(1), sigaction(2), acct(5), core(5)HISTORY
The lastcomm command appeared in 3.0BSD.
BSD January 31, 2012 BSD