does somebody see the problem here?
Jelle de Jong
jelledejong at powercraft.nl
Fri Dec 15 12:19:37 UTC 2006
I found a way to upgrade to edgy with my epia en12000, more on that later.
But I have a lot of script that i use and a common function for echoing
colour is:
cecho()
{
if [ "$1" = "black" ]; then
echo -ne "\E[30m"
elif [ "$1" = "red" ]; then
echo -ne "\E[31m"
elif [ "$1" = "green" ]; then
echo -ne "\E[32m"
elif [ "$1" = "yellow" ]; then
echo -ne "\E[33m"
elif [ "$1" = "blue" ]; then
echo -ne "\E[34m"
elif [ "$1" = "magenta" ]; then
echo -ne "\E[35m"
elif [ "$1" = "cyan" ]; then
echo -ne "\E[36m"
fi
echo $2 $3
tput sgr0
}
cecho "green" "text in green - running processes:"
this should work and in a script it also work when I run in directly
from xterm or xfce4-terminal.
But in a thunar launcher or custom action it does not work and screws up
the script. It is getting very frustrating because I can't find the problem.
I have attached two files a script and a launcher,
Please help.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Pause Hellanzb.desktop
Type: application/x-desktop
Size: 346 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/xubuntu-devel/attachments/20061215/7a536323/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pause-hellanzb.sh
Type: application/x-shellscript
Size: 2835 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/xubuntu-devel/attachments/20061215/7a536323/attachment-0001.bin>
More information about the xubuntu-devel
mailing list