[HPADM] Script help

From: Gosselin, Mark (gosselinm_at_netscout.com)
Date: 03/16/04

  • Next message: Long, Larry C: "[HPADM] How can I move an installaion of JetAdmin"
    Date: Tue, 16 Mar 2004 10:41:44 -0500
    To: "HPUX Admin List (E-mail)" <hpux-admin@dutchworks.nl>
    
    

    Hi everyone...

    I'm writing a script to kill processes by name

    For example, say I have 6 apache processes running, I want to read in the PIDs, save them to a file,
    perform some other tasks, then kill those original PIDs (the tasks in the middle may have started additional
    processes of the same name)

    Does anyone have an example like this that I can look at???

    Thanks,
    Mark Gosslein
    NetScout Systems

    --
                 ---> Please post QUESTIONS and SUMMARIES only!! <---
            To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
           Name: hpux-admin@dutchworks.nl     Owner: owner-hpux-admin@dutchworks.nl
     
     Archives:  ftp.dutchworks.nl:/pub/digests/hpux-admin       (FTP, browse only)
                http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse & search)
    

  • Next message: Long, Larry C: "[HPADM] How can I move an installaion of JetAdmin"

    Relevant Pages

    • fork and hanging
      ... I have attempted to simultaneously ssh to a number of boxes (with ... I have an 'expect' script used to cache ... while (%pids) { ...
      (comp.lang.perl.misc)
    • Re: Monitoring multiple child processes
      ... I have a script that, much like the Little Old Lady who lived in a shoe, ... an external process that all run in parallel. ... push @pids, $pid; ... my $kid = waitpid; ...
      (perl.beginners)
    • RE: Monitoring multiple child processes
      ... Basically, the script does some stuff, then kicks off multiple copies ... push @pids, $pid; ... An external process has failed!!\n"); ... One question (I've never used redo before.) ...
      (perl.beginners)
    • Re: Uniquely identifying processes
      ... > I'm writing a script to allow one or more pids to be killed by sending ... > them SIGTERM, then a few seconds later if any are still running ... and then at each stage ignoring any of the ... > pids whose start time has changed. ...
      (comp.unix.solaris)
    • bash for-loop - syntax error: operand expected
      ... when the script is run for the first time, ... getkill_list.sh will return a number of PIDs and the script will kill them ... the for loop runs through fine. ...
      (comp.unix.shell)