From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3258 invoked by alias); 29 Jul 2008 12:12:10 -0000 Received: (qmail 3248 invoked by uid 22791); 29 Jul 2008 12:12:09 -0000 X-Spam-Check-By: sourceware.org Received: from mtaout02-winn.ispmail.ntl.com (HELO mtaout02-winn.ispmail.ntl.com) (81.103.221.48) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 29 Jul 2008 12:11:43 +0000 Received: from aamtaout02-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout02-winn.ispmail.ntl.com with ESMTP id <20080729121140.LGKI21103.mtaout02-winn.ispmail.ntl.com@aamtaout02-winn.ispmail.ntl.com> for ; Tue, 29 Jul 2008 13:11:40 +0100 Received: from gateway.morrison.mine.nu ([82.21.193.42]) by aamtaout02-winn.ispmail.ntl.com with ESMTP id <20080729121140.UAZU19289.aamtaout02-winn.ispmail.ntl.com@gateway.morrison.mine.nu> for ; Tue, 29 Jul 2008 13:11:40 +0100 Received: from localhost ([127.0.0.1] helo=mail.morrison.mine.nu ident=www-data) by gateway.morrison.mine.nu with esmtp (Exim 4.69 #1 (Debian)) id 1KNo3G-0007pi-4T for ; Tue, 29 Jul 2008 13:11:38 +0100 Received: from 192.168.0.249 (SquirrelMail authenticated user john) by mail.morrison.mine.nu with HTTP; Tue, 29 Jul 2008 13:11:38 +0100 (BST) Message-ID: Date: Tue, 29 Jul 2008 12:12:00 -0000 Subject: Package Grep source and Program not installed functionality From: "John Morrison" To: cygwin-apps@cygwin.com User-Agent: SquirrelMail/1.4.15 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit Mailing-List: contact cygwin-apps-help@cygwin.com; run by ezmlm Precedence: bulk Sender: cygwin-apps-owner@cygwin.com List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Mail-Followup-To: cygwin-apps@cygwin.com X-SW-Source: 2008-07/txt/msg00165.txt.bz2 Hi All, Would it be possible to extend the cgi http://cygwin.com/cgi-bin2/package-grep.cgi to (optionally) output plain text instead of the formatted HTML? Add a output=text instruction? If the source is available I'd be willing to see if I could do the mod. I was thinking of some kind of command line which would simplify the users finding out what package they would need to install to access a particular tool, for example on my ubuntu machine; john@hela:~$ gedit The program 'gedit' is currently not installed. You can install it by typing: sudo apt-get install gedit bash: gedit: command not found Perhaps the cygwin version could be john@cygwin:~$ curl The program 'curl' is currently not installed. You can install it from the following package(s); curl/curl-7.15.1-1 command line tool for transferring files with HTTP, HTTPS, FTP, etc. curl/curl-7.15.4-1 command line tool for transferring files with HTTP, HTTPS, FTP, etc. curl/curl-7.16.3-1 command line tool for transferring files with HTTP, HTTPS, FTP, etc. where the tool could use the package-grep.cgi?output=text&grep=/curl.exe I don't know how the instruction get's fired, is there something in bash which says "run this if you don't find a program"? What do you folks think? Doable? Useful? John.