Linux dpkg Software Report

Amedee Van Gasse amedee-ubuntu at amedee.be
Fri Dec 25 14:01:04 UTC 2009


On 23-12-09 06:25, Ray Parrish wrote:
> Hello,
>
> I hope I won't get flamed for this, but I have just completed my most
> ambitious script to date, and have completed the Linux dpkg Software
> Report script which takes output from dpkg, and formats it into html
> pages sorted by package section, such as Games, Editors, etc... and also
> generates an alphabetical index to the packages.
>
> All web urls, ftp urls, and emails in the dpkg output have been
> converted to clickable links, and there are links to each package's
> installed files lists, and configuration files lists, as well as any
> index.html files in that package's /usr/share/doc/packagename folders.
>
> I've released it as open source, and it is available at -
>
> <http://www.rayslinks.com/LinuxdpkgSoftwareReport.html>
>
> There is also a sample output set from the script available for perusal
> linked on that page.
>
> Sorry if you consider this spam, it's not a technical question, but an
> announcement of something  I think could help some people learn their
> systems easier.
>
> Later, Ray Parrish
>
I extracted the .tar.gz file to /home/amedee/downloads/SoftwareReport.
Then I did 'cd /home/amedee/downloads/SoftwareReport'.
Next I did './LinuxdpkgSoftwareReport.sh'

The result was a lot of errors:
./LinuxdpkgSoftwareReport.sh: regel 290: ./WriteHTML.sh: Bestand of map 
bestaat niet


However, it worked when I invoked it with
`pwd`/LinuxdpkgSoftwareReport.sh


I suppose that this is because you need $DirectoryName for some reason.
I suggest that for the next version of your script you remove the 
dependency for an absolute directory path. A script should be able to 
run no matter how you start it.

My 2 cents.

-- 
Amedee




More information about the ubuntu-users mailing list