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



"Spamless" <Spamless@xxxxxxx> wrote in message
news:45b150ca$0$17951$22fed638@xxxxxxxxxxxxxxxxx
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.

Thanks, good bit of detective work.

Looks like the source has been "left behind" !

My guess is that its now effectively "maintained" by the distributors rather
than with the kernel or secondary bodies ??? Or should be ???

What do you recon. This is a bit of a nasty discovery.

Thanks,

Aaron


.



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: Check to see if files exists and delete it.
    ... > I only want to do this in VBA, I use the kill command> however if there are no files to delete it tells me "File> not found" and exits the sub. ... To remove subdirectories, you have to run> through the directory ... >>command prompt calling Deltree. ...
    (microsoft.public.access.modulesdaovba)
  • 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)
  • Re: [opensuse] Help Killling Process
    ... will not die nor will it display anything. ... I remember from the 'old days' that there is a cli command to ... identify a process id and another one to kill a process. ... This will give you a listing of the processes and their pid' although ...
    (SuSE)