Okay, here`s the real problem,
# ps -efA |grep dispatch
cspenard 33958 45716 0 09:08:05 pts/8 0:00 /prog/gena/8.1.1/bin/dispatch genie -u /prog/gena/impress/gui/im
msirois 37212 9842 0 08:41:17 pts/1 0:04 /prog/gena/8.1.1/bin/dispatch genie -u /prog/gena/impress/gui/im
My script passes each process and when it finds "dispatch genie" it holds its data in a hash table.
As you can see, dispatch genie is found in these two columns.
if ($cmd =~ /dispatch genie/) {
That returns absolutely nothing.
Why?
"returns nothing" is a little confusing. The test above should evaluate to true, if $cmd contains 'dispatch genie' and whatever is inside the if block should be executed. If you're saying the if block isn't being executed, well $cmd probably doesn't contain what you think it does then.
James
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>