Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tlug: Start and stop Apache on TL2.0



> I tried. It didn't work.

What were the problems ?

> Why escaped at "ps ax" line?

It's not escaped. It's backquoted. This means "execute the stuff
inside the backquotes as if typed in at a command prompt and
return the output into the variable given before the = sign".

This variable is an array which subsequently is searched for the
pattern given as the second command line parameter ( the first
is the signal to be passed to the process ).

Actually, I'm gonna improve the scripts a little because the
Linux ps ax provides space(s) at the beginning of each line and
the one of FreeBDS doesn't ( so the numbering is something of an
evil hack ). The solution will be to remove any possible spaces
at the beginning of each line.

> I like just doing "kill -15 `pidof whatever your program`".

killname -15 <your_process_pattern>

Please excuse any rough spots in the scripts. This was a quick
and dirty hack during a test run of qmail ( before I deploy any
Interent installation I test that in my home network consisting
of four machines at the moment. Soon to be beefed up to six
machines. If needed I can even throw eight machines into the
battle. Needless to say most of them are 386's - slow, but that
doesn't matter for such tests. You just need a number of
machines to simulate a real world network. ).


================================================================
"It was hell. They knew it.          Karl-Max Wagner
  But they called it                 karlmax@example.com
    W-I-N-D-O-Z-E"
================================================================
--------------------------------------------------------------
Next Nomikai: 18 September, 19:30 Tengu TokyoEkiMae 03-3275-3691
Next Meeting: 10 October, Tokyo Station Yaesu central gate 12:30
--------------------------------------------------------------
Sponsor: PHT, makers of TurboLinux http://www.pht.co.jp


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links