<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>shell programmierung</title>
    <link>http://forum.geizhals.at/feed.jsp?id=450011</link>
    <description>Geizhals-Forum</description>
    <item>
      <title>Re: shell programmierung</title>
      <link>http://forum.geizhals.at/t450011,3703720.html#3703720</link>
      <description>killall pflogd&lt;br&gt;kill $(pidof pflogd) # ggf auch in einer while-schleife&lt;br&gt;&lt;br/&gt;</description>
      <pubDate>Thu, 12 Oct 2006 01:24:54 GMT</pubDate>
      <guid>http://forum.geizhals.at/t450011,3703720.html#3703720</guid>
      <dc:creator>juwb</dc:creator>
      <dc:date>2006-10-12T01:24:54Z</dc:date>
    </item>
    <item>
      <title>Re(2): shell programmierung</title>
      <link>http://forum.geizhals.at/t450011,3702912.html#3702912</link>
      <description>danke auch für dein feedback.&lt;br&gt;werde mich mal mit der &lt;br&gt;&lt;div class=code&gt;&lt;pre&gt;$( )&lt;/pre&gt;&lt;/div&gt; syntax auseinandersetzen &lt;img src="smile.gif" width="16" height="19" align="absmiddle" alt=":-)"/&gt;&lt;br/&gt;</description>
      <pubDate>Wed, 11 Oct 2006 15:37:29 GMT</pubDate>
      <guid>http://forum.geizhals.at/t450011,3702912.html#3702912</guid>
      <dc:creator>hans_peter_karl_heinz</dc:creator>
      <dc:date>2006-10-11T15:37:29Z</dc:date>
    </item>
    <item>
      <title>Re(2): shell programmierung</title>
      <link>http://forum.geizhals.at/t450011,3702909.html#3702909</link>
      <description>danke für deinen tipp. auf das mit der apostrophsetzung bin ich kurze zeit später selbst draufgekommen&lt;br&gt;&lt;a href="http://forum.geizhals.at/t450011,3701130.html#3701130" rel="noopener" target="_blank"&gt;http:/&lt;wbr/&gt;/&lt;wbr/&gt;forum.geizhals.at/&lt;wbr/&gt;t450011,3701130.html#3701130&lt;/a&gt; &lt;br&gt;&lt;br&gt;den langen befehl werde ich dann daheim studieren &lt;img src="shades.gif" width="16" height="19" align="absmiddle" alt="B-)"/&gt;&lt;br/&gt;</description>
      <pubDate>Wed, 11 Oct 2006 15:36:21 GMT</pubDate>
      <guid>http://forum.geizhals.at/t450011,3702909.html#3702909</guid>
      <dc:creator>hans_peter_karl_heinz</dc:creator>
      <dc:date>2006-10-11T15:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: shell programmierung</title>
      <link>http://forum.geizhals.at/t450011,3701761.html#3701761</link>
      <description>Beispiel mit einem Schleiferl, weil man da noch viel andere sinnvolle Sachen machen kann (loggen, Screenoutput etc.):&lt;br&gt;&lt;br&gt;for i in `ps -ef | grep _pflogd | awk '{print $2}'`; do kill $i; done&lt;br/&gt;</description>
      <pubDate>Wed, 11 Oct 2006 08:38:47 GMT</pubDate>
      <guid>http://forum.geizhals.at/t450011,3701761.html#3701761</guid>
      <dc:creator>ruprecht69</dc:creator>
      <dc:date>2006-10-11T08:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: shell programmierung</title>
      <link>http://forum.geizhals.at/t450011,3701765.html#3701765</link>
      <description>Beispiel mit einem Schleiferl, weil man da noch viel andere sinnvolle Sachen machen kann (loggen, Screenoutput etc.):&lt;br&gt;&lt;br&gt;for i in `ps -ef | grep _pflogd | awk '{print $2}'`; do kill $i; done&lt;br&gt;&lt;br&gt;P.S.: falls du dir mit den Backticks schwertust, verwende einfach den $( ) Syntax &lt;img src="smile.gif" width="16" height="19" align="absmiddle" alt=":)"/&gt;&lt;br&gt;&lt;br&gt;for i in $(ps -ef | grep t | awk '{print $2}'); do kill $i; done&lt;br/&gt;</description>
      <pubDate>Wed, 11 Oct 2006 08:38:47 GMT</pubDate>
      <guid>http://forum.geizhals.at/t450011,3701765.html#3701765</guid>
      <dc:creator>ruprecht69</dc:creator>
      <dc:date>2006-10-11T08:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: shell programmierung</title>
      <link>http://forum.geizhals.at/t450011,3701590.html#3701590</link>
      <description>ich machs immer so (ist länger als Deins):&lt;br&gt;&lt;br&gt;kill -9 `ps -ef | grep -i processname | grep -v $$ | awk '{ split ($0, xout, " "); print xout[2]}'`&lt;br&gt;&lt;br&gt;&lt;br&gt;imo hast bei dem unteren Beispiel die falsche Apostrophsetzung.&lt;br&gt;&lt;br&gt;` wäre imo richtig&lt;br&gt;&lt;br&gt;&lt;br/&gt;</description>
      <pubDate>Wed, 11 Oct 2006 07:28:07 GMT</pubDate>
      <guid>http://forum.geizhals.at/t450011,3701590.html#3701590</guid>
      <dc:creator>West</dc:creator>
      <dc:date>2006-10-11T07:28:07Z</dc:date>
    </item>
    <item>
      <title>Re(4): shell programmierung</title>
      <link>http://forum.geizhals.at/t450011,3701130.html#3701130</link>
      <description>&lt;br&gt;&lt;div class=code&gt;&lt;pre&gt;kill `top | grep _pflogd | cut -c1-5`&lt;/pre&gt;&lt;/div&gt;&lt;br&gt;&lt;br&gt;also einfach `statt ' &lt;img src="birndl.gif" width="16" height="26" align="absmiddle" alt="!&amp;#58;-&amp;#41;"/&gt;&lt;br/&gt;</description>
      <pubDate>Tue, 10 Oct 2006 19:21:46 GMT</pubDate>
      <guid>http://forum.geizhals.at/t450011,3701130.html#3701130</guid>
      <dc:creator>hans_peter_karl_heinz</dc:creator>
      <dc:date>2006-10-10T19:21:46Z</dc:date>
    </item>
    <item>
      <title>Re(3): shell programmierung</title>
      <link>http://forum.geizhals.at/t450011,3701116.html#3701116</link>
      <description>Keine Ahnung was du für ein seltsames System hast wo kill ohne killall installiert ist...jedenfalls wirst du es wohl doch irgendwo herbekommen oder?&lt;br/&gt;</description>
      <pubDate>Tue, 10 Oct 2006 19:12:35 GMT</pubDate>
      <guid>http://forum.geizhals.at/t450011,3701116.html#3701116</guid>
      <dc:creator>mko</dc:creator>
      <dc:date>2006-10-10T19:12:35Z</dc:date>
    </item>
    <item>
      <title>Re(3): shell programmierung</title>
      <link>http://forum.geizhals.at/t450011,3701115.html#3701115</link>
      <description>&lt;br&gt;&lt;div class=code&gt;&lt;pre&gt;KILLALL(1)                                                       User Commands                                                      KILLALL(1)&#xD;
&#xD;
&#xD;
&#xD;
NAME&#xD;
       killall - kill processes by name&#xD;
&#xD;
SYNOPSIS&#xD;
       killall [-Z,--context pattern] [-e,--exact] [-g,--process-group] [-i,--interactive] [-q,--quiet] [-r,--regexp] [-s,--signal signal]&#xD;
       [-u,--user user] [-v,--verbose] [-w,--wait] [-I,--ignore-case] [-V,--version] [--] name ...&#xD;
       killall -l&#xD;
       killall -V,--version&#xD;
&#xD;
DESCRIPTION&#xD;
       killall sends a signal to all processes running any of the specified commands. If no signal name is specified, SIGTERM is sent.&#xD;
&#xD;
       Signals can be specified either by name (e.g. -HUP) or by number (e.g. -1) or by option -s.&#xD;
&#xD;
       If the command name is not regular expression (option -r) and contains a slash (/), processes executing that particular  file  will  be&#xD;
       selected for killing, independent of their name.&#xD;
&#xD;
       killall  returns  a zero return code if at least one process has been killed for each listed command, or no commands were listed and at&#xD;
       least one process matched the -u and -Z search criteria. killall returns non-zero otherwise.&#xD;
&#xD;
       A killall process never kills itself (but may kill other killall processes).&#xD;
&#xD;
OPTIONS&#xD;
       -e, --exact&#xD;
              Require an exact match for very long names. If a command name is longer than 15 characters, the full  name  may  be  unavailable&#xD;
              (i.e.  it is swapped out). In this case, killall will kill everything that matches within the first 15 characters. With -e, such&#xD;
              entries are skipped.  killall prints a message for each skipped entry if -v is specified in addition to -e,&#xD;
&#xD;
       -I, --ignore-case&#xD;
              Do case insensitive process name match.&#xD;
&#xD;
       -g, --process-group&#xD;
              Kill the process group to which the process belongs. The kill signal is only sent once per group,  even  if  multiple  processes&#xD;
              belonging to the same process group were found.&#xD;
&#xD;
       -i, --interactive&#xD;
              Interactively ask for confirmation before killing.&#xD;
&#xD;
       -l, --list&#xD;
              List all known signal names.&#xD;
&#xD;
       -q, --quiet&#xD;
              Do not complain if no processes were killed.&#xD;
&#xD;
       -r, --regexp&#xD;
              Interpret process name pattern as an extended regular expression.&#xD;
&#xD;
       -s, --signal&#xD;
              Send this signal instead of SIGTERM.&#xD;
&#xD;
       -u, --user&#xD;
              Kill only processes the specified user owns. Command names are optional.&#xD;
&#xD;
       -v, --verbose&#xD;
              Report if the signal was successfully sent.&#xD;
&#xD;
       -V, --version&#xD;
              Display version information.&#xD;
&#xD;
       -w, --wait&#xD;
              Wait for all killed processes to die. killall checks once per second if any of the killed processes still exist and only returns&#xD;
              if none are left.  Note that killall may wait forever if the signal was ignored, had no effect, or if the process stays in  zom-&#xD;
              bie state.&#xD;
&#xD;
       -Z, --context&#xD;
              (SELinux  Only)  Specify  security  context:  kill only processes having security context that match with given expended regular&#xD;
              expression pattern. Must precede other arguments on the command line. Command names are optional.&#xD;
&#xD;
FILES&#xD;
       /proc     location of the proc file system&#xD;
&#xD;
KNOWN BUGS&#xD;
       Killing by file only works for executables that are kept open during execution, i.e. impure executables can't be killed this way.&#xD;
&#xD;
       Be warned that typing killall name may not have the desired effect on non-Linux systems, especially when done by a privileged user.&#xD;
&#xD;
       killall -w doesn't detect if a process disappears and is replaced by a new process with the same PID between scans.&#xD;
&#xD;
       If processes change their name, killall may not be able to match them correctly.&#xD;
&#xD;
AUTHORS&#xD;
       Werner Almesberger &amp;lt;werner@almesberger.net&amp;gt; wrote the original version of psmisc. Since  version  20  Craig  Small  &amp;lt;csmall@small.drop-&#xD;
       bear.id.au&amp;gt; can be blamed.&#xD;
&#xD;
SEE ALSO&#xD;
       kill(1), fuser(1), pgrep(1), pidof(1), pkill(1), ps(1), kill(2).&#xD;
&#xD;
&#xD;
&#xD;
Linux                                                             2004-11-09                                                        KILLALL(1)&#xD;
&lt;/pre&gt;&lt;/div&gt;&lt;br/&gt;</description>
      <pubDate>Tue, 10 Oct 2006 19:11:52 GMT</pubDate>
      <guid>http://forum.geizhals.at/t450011,3701115.html#3701115</guid>
      <dc:creator>mko</dc:creator>
      <dc:date>2006-10-10T19:11:52Z</dc:date>
    </item>
    <item>
      <title>Re(2): shell programmierung</title>
      <link>http://forum.geizhals.at/t450011,3701051.html#3701051</link>
      <description>danke für das nette workaround &lt;img src="zwinker.gif" width="16" height="19" align="absmiddle" alt=";-)"/&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=code&gt;&lt;pre&gt;# top -n 1 | grep _pflogd | cut -c1-5&#xD;
 6727&#xD;
# killall _pflogd&#xD;
killall: Command not found.&#xD;
# man killall&#xD;
man: no entry for killall in the manual.&#xD;
# &lt;/pre&gt;&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;img src="frage.gif" width="16" height="26" align="absmiddle" alt="?-)"/&gt; &lt;img src="teeth.gif" width="16" height="19" align="absmiddle" alt="|-D"/&gt;&lt;br/&gt;</description>
      <pubDate>Tue, 10 Oct 2006 18:34:37 GMT</pubDate>
      <guid>http://forum.geizhals.at/t450011,3701051.html#3701051</guid>
      <dc:creator>hans_peter_karl_heinz</dc:creator>
      <dc:date>2006-10-10T18:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: shell programmierung</title>
      <link>http://forum.geizhals.at/t450011,3700963.html#3700963</link>
      <description>Schau dir mal "killall" an...in deinem Fall müsste killall _pflogd oder killal pflogd funktionieren...je nachdem wie der Prozess heißt.&lt;br/&gt;</description>
      <pubDate>Tue, 10 Oct 2006 17:55:14 GMT</pubDate>
      <guid>http://forum.geizhals.at/t450011,3700963.html#3700963</guid>
      <dc:creator>mko</dc:creator>
      <dc:date>2006-10-10T17:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: shell programmierung</title>
      <link>http://forum.geizhals.at/t450011,3700964.html#3700964</link>
      <description>Schau dir mal "killall" an...in deinem Fall müsste killall _pflogd oder killall pflogd funktionieren...je nachdem wie der Prozess heißt.&lt;br/&gt;</description>
      <pubDate>Tue, 10 Oct 2006 17:55:14 GMT</pubDate>
      <guid>http://forum.geizhals.at/t450011,3700964.html#3700964</guid>
      <dc:creator>mko</dc:creator>
      <dc:date>2006-10-10T17:55:14Z</dc:date>
    </item>
    <item>
      <title>shell programmierung</title>
      <link>http://forum.geizhals.at/t450011,3700952.html#3700952</link>
      <description>hallo geeks!&lt;br&gt;ich möchte gerne ein mini shell script basteln, das einen bestimmten prozess killt.&lt;br&gt;das ganze unter csh&lt;br&gt;der kill befehl ist mir bekannt und ich weiss auch wie ich die procid herausfinde.&lt;br&gt;aber wie soll ich das jetzt zsammschweissen?&lt;br&gt;&lt;br&gt;die procid bekomme ich über:&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=code&gt;&lt;pre&gt;top -n 1 | grep _pflogd | cut -c1-5&lt;/pre&gt;&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;div class=code&gt;&lt;pre&gt;kill 'top -n 1 | grep _pflogd | cut -c1-5'&lt;/pre&gt;&lt;/div&gt; geht nicht&lt;br&gt;&lt;br&gt;plz help!&lt;br&gt;&lt;br&gt;tia&lt;br/&gt;</description>
      <pubDate>Tue, 10 Oct 2006 17:49:03 GMT</pubDate>
      <guid>http://forum.geizhals.at/t450011,3700952.html#3700952</guid>
      <dc:creator>hans_peter_karl_heinz</dc:creator>
      <dc:date>2006-10-10T17:49:03Z</dc:date>
    </item>
  </channel>
</rss>
