24 Oct
2003
24 Oct
'03
17:43
Hallo, Am Fri, 24 Oct 2003, Marcus Habermehl schrieb:
Ich _dachte_, dass ich mit
alias ogg123='if [ "$WINOWMANAGER" = "/usr/X11R6/bin/kde"] ; then "artsdsp ogg123"; else "ogg123"; fi'
das gewünschte Ergebnis erhalte.
Du willst eine Funktion verwenden: ogg123() { if ps aux | grep -q '[a]rtsd'; then artsdsp ogg123 "$@" else ogg123 "$@" fi } -dnh -- "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." -- Rich Cook