Contents of .bashrc:
# ~/.bashrc: executed by bash(1) for non-login shells.
#alias php=/usr/local/php5/bin/php
export TMPDIR=$HOME/tmp
export PATH=$HOME/bin:$PATH
export LD_LIBRARY_PATH=$HOME/lib:/usr/local/lib:$LD_LIBRARY_PATH
export CPATH=$HOME/include:/usr/local/include:$CPATH
export LIBRARY_PATH=$HOME/lib:/usr/local/lib:$LIBRARY_PATH
Contents of .bash_profile:
# ~/.bash_profile: executed by bash(1) for login shells.
umask 002
export PS1='[\h]$ '
alias php=/usr/local/php5/bin/php
export LS_OPTIONS='-Fh --color=auto'
eval "`dircolors`"
alias ls='ls $LS_OPTIONS'
alias ll='ls $LS_OPTIONS -l'
alias l='ls $LS_OPTIONS -lA'
#
# Some more alias to avoid making mistakes:
# alias rm='rm -i'
# alias cp='cp -i'
# alias mv='mv -i'
export TMPDIR=$HOME/tmp
export PATH=$HOME/bin:$PATH
export LD_LIBRARY_PATH=$HOME/lib:/usr/local/lib:$LD_LIBRARY_PATH
export CPATH=$HOME/include:/usr/local/include:$CPATH
export LIBRARY_PATH=$HOME/lib:/usr/local/lib:$LIBRARY_PATH
Contents of ~/trbailey.org/cgi-bin/php-wrapper.cgi:
#!/bin/sh
export PHPRC=/home/siggma/trbailey.org/cgi-bin/
exec /dh/cgi-system/php5.cgi $*
See anything I'm missing?
Apache error.log:
[Wed Mar 04 20:48:59 2009] [error] [client 216.99.209.41] /home/siggma/bin/id3v2 : error while loading shared libraries: libid3-3.8.so.3: cannot open shared obje ct file: No such file or directory
Shell session:
[thing]$ id3v2
Usage: id3v2 [OPTION]... [FILE]...
Adds/Modifies/Removes/Views id3v2 tags, modifies/converts/lists id3v1 tags
-h, --help Display this help and exit
-f, --list-frames Display all possible frames for id3v2
-L, --list-genres Lists all id3v1 genres
-v, --version Display version information and exit
-l, --list Lists the tag(s) on the file(s)
-R, --list-rfc822 Lists using an rfc822-style format for output
-d, --delete-v2 Deletes id3v2 tags
-s, --delete-v1 Deletes id3v1 tags
-D, --delete-all Deletes both id3v1 and id3v2 tags
-C, --convert Converts id3v1 tag to id3v2
-1, --id3v1-only Writes only id3v1 tag
-2, --id3v2-only Writes only id3v2 tag
-a, --artist "ARTIST" Set the artist information
-A, --album "ALBUM" Set the album title information
-t, --song "SONG" Set the song title information
-c, --comment "DESCRIPTION":"COMMENT":"LANGUAGE"
Set the comment information (both
description and language optional)
-g, --genre num Set the genre number
-y, --year num Set the year
-T, --track num/num Set the track number/(optional) total tracks
You can set the value for any id3v2 frame by using '--' and then frame id
For example:
id3v2 --TIT3 "Monkey!" file.mp3
would set the "Subtitle/Description" frame to "Monkey!".
[thing]$
And finally the script itself:
[thing]$ php xspfphp.php
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="xspf.xsl"?>
ETC...
And the real curiosity:
[thing]$ ~/trbailey.org/cgi-bin/php-wrapper.cgi ~/trbailey.org/music/xspfphp.php
X-Powered-By: PHP/5.2.6/cgi-bin/php-wrapper.cgi ~/trbailey.org/music/xspfphp.php
Content-Type: text/xml
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="xspf.xsl"?>
... ETCEdited by siggma on 03/04/09 08:56 PM (server time).