Trouble with AWK script on Solaris machine
- From: "connect" <pamato@xxxxxxxxxxxxxxxx>
- Date: Thu, 11 Aug 2005 17:20:46 +1000
Hi ,
I'm running a script to grab a pid - which works beautifully on AIX ,HP and
SCO but not on Solaris. It looks like it can not get the pid...Any ideas:
pid=`ps -el | awk '( ($NF ~ /'"${UBS_SERVER}_serv"'/) && ($4 != mypid) &&
($5 != mypid) ){ printf "%d ",$4 }' mypid=$$ `
i have tried ps -eo with different formats ie: ppid pid etc...
Running out of ideas..
Thanking you in advanced
Pedds ; )
.
- Follow-Ups:
- Re: Trouble with AWK script on Solaris machine
- From: Ed Morton
- Re: Trouble with AWK script on Solaris machine
- From: John L
- Re: Trouble with AWK script on Solaris machine
- From: Chris F.A. Johnson
- Re: Trouble with AWK script on Solaris machine
- Prev by Date: Re: gawk v3.1.4 parser crash on VMS
- Next by Date: Re: Trouble with AWK script on Solaris machine
- Previous by thread: gawk v3.1.4 parser crash on VMS
- Next by thread: Re: Trouble with AWK script on Solaris machine
- Index(es):
Relevant Pages
|
|