달력

5

« 2024/5 »

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31

http://suite.tistory.com/ fs

리눅스에서

#!/bin/csh -f

alias PRINT echo

set who=$1
PRINT ">> apache demon clear all"
set documents=`ps -ef |grep apache|awk '{if ($1=="search") print $2}'`

foreach i ($documents)

echo $i
#kill -9 $i

end

:
Posted by mastar