awk & shell variables
From: Suhas (sgtembe_at_hotmail.com)
Date: 07/30/03
- Next message: Leiji Liu: "process control"
- Previous message: parth: "Re: pls need some guidance"
- Next in thread: scriptOmatic: "Re: awk & shell variables"
- Reply: scriptOmatic: "Re: awk & shell variables"
- Reply: Damian Ibbotson: "Re: awk & shell variables"
- Reply: erybak: "Re: awk & shell variables"
- Reply: Ed Morton: "Re: awk & shell variables"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 30 Jul 2003 14:26:48 -0700
Hello Everyone,
Here is what I am trying to do & maybe you guys can throw some light,
since I am not able to figure it out. I have shell script that
contains the following:
DB_DIR=/test/data
DB_NAME=custom
UID=root
ps -ef | awk '$1 == "'"${UID}"'" && $9 ~ /_mprosrv
"'"${DB_DIR}"'"'/'"'"${DB_NAME}"'"/'
# I know that the above syntax is incorrect, since I am getting
errors.
Basically, I am trying to check for a process that has the UID (1st
column) as "root" & the 9th column contains "_mprosrv
/test/data/custom".
Thanks in advance.
Suhas
- Next message: Leiji Liu: "process control"
- Previous message: parth: "Re: pls need some guidance"
- Next in thread: scriptOmatic: "Re: awk & shell variables"
- Reply: scriptOmatic: "Re: awk & shell variables"
- Reply: Damian Ibbotson: "Re: awk & shell variables"
- Reply: erybak: "Re: awk & shell variables"
- Reply: Ed Morton: "Re: awk & shell variables"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|