Re: Wheres the source code to GNU/Linux commands.



On 2007-01-19, Aaron Gray <ang.usenet@xxxxxxxxx> wrote:
Hi,

I want to code a SIGHUP command that will only work with certain processes,
ie HTTPD and ProFTPd.

Where are the sources to 'kill' and 'ps' commands ?

Well, kill may be found in the old (2005)
ftp://ftp.kernel.org/pub/linux/utils/util-linux/util-linux-2.12r.tar.bz2

Do I have to use a source RPM to get it and if so what is the RPM called ?

In Fedora Core2, the command
locate bin/kill
shows which bin directory,
/bin/kill and /usr/bin/kill (The latter is a symbolic link to the first)
and
rpm -q -f /bin/kill
shows
util-linux-2.12-18
and
rpm -q -i util-linux
shows
Source RPM: util-linux-2.12-18.src.rpm

as for ps ...
rpm -q -f /bin/ps
shows
procps-3.2.0-1.1
and
rpm -q -i procps
shows
Source RPM: procps-3.2.0-1.1.src.rpm
while
http://procps.sourceforge.net/
(from a google search on "procps")
has a link to
http://procps.sourceforge.net/procps-3.2.7.tar.gz
which has skill (also use for kill), ps, top, etc. and a note about
it's "kill" (ln -f skill kill)
# For example, you may prefer the /bin/kill from util-linux or bsdutils.
and you have the skill (kill) source code there.
.



Relevant Pages

  • Re: exit status of background jobs
    ... and if it runs too long then kill it. ... while ((count < TIMEOUT)); do ... As you can see, I grab the exit status of the command in question into a "/tmp" file, where I subsequently read it back. ...
    (comp.unix.shell)
  • Re: [opensuse] Help Killling Process
    ... will not die nor will it display anything. ... YouTube uses to display all its video. ... command to identify a process id and another one to kill a process. ... Kill is the command that sends signals to processes. ...
    (SuSE)
  • Re: Batch script for maintaing remote services
    ... Thanks again Pegasus. ... using taskkill command to kill the service. ... Taskkill.exe will kill a TASK, ... You can look up your SMTP mail server with nslookup but there are some ...
    (microsoft.public.windowsxp.general)
  • Re: F12 Lost Gnome Panels
    ... The only command I could think of at first ... gnome-panel won't run unless you're in a gnome-session (i.e. in ... kill behavior has to be enabled. ... You don't need to be root to fix this. ...
    (Fedora)
  • kill -3
    ... analyse the problem,i have run the command 'kill -3' which is supposed to ... Can someone clarify what is the expected output when we run kill -3 command. ... If you wish to confirm the origin or content of this communication, ... Abbey National plc is registered in England, ...
    (AIX-L)