I believe what he intended was to escape the backtick (`). I believe a single backtick before a bracketed command is an rc escape (as in shell escape) to run a command. Kinda like bash's `` and $(). What Kris's command does is write the line "exec `{wi_script}" to the file "rc.wmii.local" so that it executes wmiirc (the shell equivalent of the rc script rc.wmii/rc.wmii.local). This way, even if 9base is installed and tries to run the rc script instead, the local rc script then calls the shell script wmiirc. Just escape the backtick: [foo@bar ~]$ cat << EOF > .wmii-hg/rc.wmii.localexec \`{wi_script wmiirc} EOFThomas On Mon, Jan 12, 2009 at 10:37:39PM +0100, Julien Pecqueur (JPEC) wrote:Kris Maglione wrote:On Mon, Jan 12, 2009 at 09:16:13PM +0100, Julien Pecqueur (JPEC) wrote:In the console i've probably found a way : i can see a message like >>> /usr/bin/wmii9rc : found rc but not read - you probably have an out of date 9base installed.If you have 9base installed, wmii runs rc.wmii instead of wmiirc. Just do, cat <<EOF >.wmii-hg/rc.wmii.local exec `{wi_script wmiirc} EOF chmod +x .wmii-hg/rc.wmii.localAre you sure of the ` before {wi_script wmiirc}?? Result of the command : [jpec@WindU100X ~]$ cat <<EOF >.wmii-hg/rc.wmii.localexec `{wi_script wmiirc} EOFbash: bad substitution: no closing "`" in `{wi_script wmiirc} So i add a "`" at the end... But mokeys are not yet modified :'(
This archive was generated by hypermail 2.2.0 : Wed Jan 14 2009 - 07:12:06 UTC