LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-26-2007, 09:50 PM   #1
dreamlemon
Member
 
Registered: Feb 2007
Distribution: Slackware
Posts: 37

Rep: Reputation: 15
source code of cmp


hi,
i am interested in the source code of cmp this command
i am currently using debian sarge.
is this source code available and by what way to get it?
 
Old 12-26-2007, 09:55 PM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
cmp (compare utility) just compares two files a byte at a time... you should be able to write it!

Under the terms of the gpl, the distributer is required to make the source code available... that would be debian. Go to debian website and follow instructions - the usual approach is to enable the source repos and use apt to locate and pull the package you need.
 
Old 12-27-2007, 05:59 AM   #3
makyo
Member
 
Registered: Aug 2006
Location: Saint Paul, MN, USA
Distribution: {Free,Open}BSD, CentOS, Debian, Fedora, Solaris, SuSE
Posts: 728

Rep: Reputation: 74
Hi.

If you are interested in the methods, the perl Power Tools project aims at producing a perl script for each of the commands in *nix.

The version of cmp is at http://search.cpan.org/src/CWEST/ppt...cmp/cmp.roland

Best wishes ... cheers, makyo
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cmp and 2.6.18 thermite_1033 Slackware 3 10-07-2006 04:55 AM
LXer: Voip Encryption, source code open source LXer Syndicated Linux News 0 07-09-2006 04:21 PM
Help me where to find 'cmp' sohard2reg Amigo 1 03-19-2005 03:54 AM
which should I use? diff cmp comm Frybyte Linux - Newbie 2 07-19-2004 09:22 AM


All times are GMT -5. The time now is 02:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration