Re: service; ps & grep help

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

 



James Pifer wrote:
...
> A little background, I have a java based application that I've used a
> custom start and stop script for. Basically the stop script does:
> stop() {
>         for pid in `ps -efww | grep myapp | grep -v grep | cut -b 10-15`;do
>                 #echo $pid
>                 kill -9 $pid
>         done

Can't you add a line with

ps -efww >/tmp/panic1.log

before the "for" line and a

echo $pid >>/tmp/panic2.log

before the kill line and check afterwards what has happened?

Mogens
-- 
Mogens Kjaer, Carlsberg A/S, Computer Department
Gamle Carlsberg Vej 10, DK-2500 Valby, Denmark
Phone: +45 33 27 53 25, Fax: +45 33 27 47 08
Email: mk@xxxxxx Homepage: http://www.crc.dk

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux