Darned Scripting


Subject: Darned Scripting
From: Brian ThunderEagle (furbs@mail.swjedi.net)
Date: Thu Dec 19 2002 - 02:13:04 AKST


I have a process:
   /var/run/sshd2_22.pid
I need a script (Bash or Perl):
   Kill <process ID in /var/run/sshd2_22.pid>
   <restart the process> /usr/local/sbin/sshd2 -p 22
I can get the PID:
   cat /var/run/sshd2_22.pid
I cannot get the script to execute the Kill command on the PID. Because I
cannot figure out how to set the PID as a variable, or combine the kill and cat
commands together if that is possible. I would really appreciate any help on
this.

     Brian ThunderEagle
      - http://www.swjedi.net
      - furbs@swjedi.net
      - bthundereagle@aidea.org

-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/

---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.



This archive was generated by hypermail 2a23 : Thu Dec 19 2002 - 14:13:56 AKST