Apr 23, 2001, 11:09 PM
Post #2 of 2
Regarding the first problem:
One of my first experiments was kind of pkill (before I even knew there is such a thing) - script that kills process(es) by name and I was using theresults of ps command.
I'm attaching the script, though I would advise against learning from it because, altough it works all right, it's not written as it should be and instead using some basic Perl functions it uses system calls, e.g. it uses system kill instead Perl kill() and ignores -w and use strict.
Regrding the second one:
1. Try using 'single quotes' around the command instead of "double quotes" or precede the ampersand with a backslash, like \&.
2. Are you sure you're using the -w switch in the script ?
QA Engineer @ Extent Technologies, Ltd.