[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [hobbit] RE: [Hobbit] Using variables in clientlaunch.cfg?
- To: <hobbit (at) hswn.dk>
- Subject: RE: [hobbit] RE: [Hobbit] Using variables in clientlaunch.cfg?
- From: "Charles Jones -X \(charljon - Cisco Learning Institute at Cisco\)" <charljon (at) cisco.com>
- Date: Sat, 29 Jul 2006 00:41:14 -0700
- Authentication-results: sj-dkim-2.cisco.com; header.From=charljon@cisco.com; dkim=pass ( 43 extraneous bytes; sig from cisco.com verified; );
- Dkim-signature: a=rsa-sha1; q=dns; l=9046; t=1154158875; x=1155022875; c=relaxed/simple; s=sjdkim2002; h=Content-Type:From:Subject:Content-Transfer-Encoding:MIME-Version; d=cisco.com; i=charljon@cisco.com; z=From:=22Charles=20Jones=20-X=20\(charljon=20-=20Cisco=20Learning=20Institute= 20at=20Cisco\)=22=20<charljon@cisco.com> |Subject:RE=3A=20[hobbit]=20RE=3A=20[Hobbit]=20Using=20variables=20in=20clientlau nch.cfg?; X=v=3Dcisco.com=3B=20h=3DfDRT5la49D1W0PwX0gRH0xnm/k4=3D; b=k5RI4qy8JzBBv6G1JCfEpZMyvbRgmciurjFjmKlx1cQYLsitm0MnbsrbDHNNOfYQha4x40bV zKoi19kkvF2HHC8hsa0hMvHfwbdA8Xc24HGRWjpyJ+uU1W+EitXPpN37;
- References: <E6CEB86E44FD564EAD8E0A793FF099ED53D697@mail01-cli.cli.ad> <E6CEB86E44FD564EAD8E0A793FF099ED53D699@mail01-cli.cli.ad> <20060729065942.GB13926@hswn.dk>
- Thread-index: Acay3KvO2obaiD1FR2WTTTLOXUrfygABG+bx
- Thread-topic: [hobbit] RE: [Hobbit] Using variables in clientlaunch.cfg?
Henrik,
I'm not sure what you mean by the header. I assume you mean the column headings on normal ps output:
$ ps aux |head -1
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
It appears that the command line ps options that I want to use, drastically change the column header:
$ ps -welfm |head -1
F S UID PID PPID C PRI NI ADDR SZ WCHAN STIME TTY TIME CMD
Will hobbit handle this? If not, can I hack it to make it do so? If I have to I suppose I could use a shell script wrapper for ps that wiill spoof a header that the client is expecting.
-Charles
________________________________
From: Henrik Stoerner [mailto:henrik (at) hswn.dk]
Sent: Fri 7/28/2006 11:59 PM
To: hobbit (at) hswn.dk
Subject: Re: [hobbit] RE: [Hobbit] Using variables in clientlaunch.cfg?
On Fri, Jul 28, 2006 at 11:12:21PM -0700, Charles Jones wrote:
> I just thought of another way to do this. I could modify the ps arguments
> that hobbit uses, and then just use hobbit-client.cfg with the PROC and
> TRACK options, and then I won't have to deal with using an ext script at all.
>
> $ ps -welfm |egrep '(java.+tc_1_1)'|grep -v grep |wc -l
> 66
>
> The "m" flag shows all sub processes/threads. Without it, it would only show a single java process.
>
> So this would work, but the question is, would hobbit still correctly parse the
> ps output with those flags?
As long as it has a header with the same identifier for where the commandline is,
then it should work.