<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7638.1">
<TITLE>Re: [hobbit] RE: [Hobbit] Using variables in clientlaunch.cfg?</TITLE>
</HEAD>
<BODY>
<DIV id=idOWAReplyText8079 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>Henrik,</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>FYI I just tried adding the m flag, and it
works beautifully:</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>I changed
hobbitclient-linux.sh.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>Before:</FONT></DIV>
<DIV dir=ltr>ps -Aw -o
pid,ppid,user,start,state,pri,pcpu,time,pmem,rsz,vsz,cmd</DIV>
<DIV dir=ltr>After:</DIV>
<DIV dir=ltr>ps -Awm -o
pid,ppid,user,start,state,pri,pcpu,time,pmem,rsz,vsz,cmd</DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr>All proc checks seem to work as normal, and with the m flag I am
now able to use TRACK on process threads (which are normally not
displayed).</DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr>Thanks for making Hobbit so flexible!</DIV>
<DIV dir=ltr>-Charles<BR></DIV>
<DIV dir=ltr>
<HR tabIndex=-1>
</DIV>
<DIV dir=ltr><FONT face=Tahoma size=2><B>From:</B> Charles Jones -X (charljon -
Cisco Learning Institute at Cisco)<BR><B>Sent:</B> Sat 7/29/2006 12:41
AM<BR><B>To:</B> hobbit@hswn.dk<BR><B>Subject:</B> RE: [hobbit] RE: [Hobbit]
Using variables in clientlaunch.cfg?<BR></FONT><BR></DIV></DIV>
<DIV>
<DIV id=idOWAReplyText84202 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>Henrik,</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>I'm not sure what you mean by the header. I
assume you mean the column headings on normal ps output:</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>$ ps aux |head
-1<BR>USER PID %CPU %MEM
VSZ RSS TTY STAT START TIME
COMMAND</FONT></DIV></DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr>It appears that the command line ps options that I want to use,
drastically change the column header:</DIV>
<DIV dir=ltr>$ ps -welfm |head -1<BR>F S
UID PID PPID C PRI
NI ADDR SZ WCHAN STIME
TTY TIME CMD</DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr>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.</DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr>-Charles<BR></DIV>
<DIV dir=ltr>
<HR tabIndex=-1>
</DIV>
<DIV dir=ltr><FONT face=Tahoma size=2><B>From:</B> Henrik Stoerner
[mailto:henrik@hswn.dk]<BR><B>Sent:</B> Fri 7/28/2006 11:59 PM<BR><B>To:</B>
hobbit@hswn.dk<BR><B>Subject:</B> Re: [hobbit] RE: [Hobbit] Using variables in
clientlaunch.cfg?<BR></FONT><BR></DIV>
<DIV>
<P><FONT size=2>On Fri, Jul 28, 2006 at 11:12:21PM -0700, Charles Jones
wrote:<BR>> I just thought of another way to do this. I could modify the ps
arguments<BR>> that hobbit uses, and then just use hobbit-client.cfg with the
PROC and<BR>> TRACK options, and then I won't have to deal with using an ext
script at all.<BR>><BR>> $ ps -welfm |egrep '(java.+tc_1_1)'|grep -v grep
|wc -l<BR>> 66<BR>><BR>> The "m" flag
shows all sub processes/threads. Without it, it would only show a single java
process.<BR>><BR>> So this would work, but the question is, would hobbit
still correctly parse the<BR>> ps output with those flags?<BR><BR>As long as
it has a header with the same identifier for where the commandline is,<BR>then
it should work.<BR></FONT></P></DIV></DIV>
</BODY>
</HTML>