Kirkx
August 23rd, 2014, 10:07 AM
When I execute the following command directly from the terminal the kernel version number appears in red:
dpkg --list linux-* | awk '/^ii/{ print $2 }' | grep -e [0-9]
When the same command is executed from a script the kernel version number appears in the default green:
http://i.imgur.com/EPD10oI.png
Is there any way to get that red colour back?
Here is the command used to open the terminal from Main Menu entry (or Alt+F2):
xfce4-terminal --geometry=78x20 -T "Kernel Information" -e "bash -c /usr/scripts/kernel-info.sh;bash"
And here is the script "kernel-info.sh":
#!/bin/bash
dpkg --list linux-* | awk '/^ii/{ print $2 }' | grep -e [0-9]
# Script End
--------
Xubuntu 14.04.1, xfce4-terminal 0.6.3
dpkg --list linux-* | awk '/^ii/{ print $2 }' | grep -e [0-9]
When the same command is executed from a script the kernel version number appears in the default green:
http://i.imgur.com/EPD10oI.png
Is there any way to get that red colour back?
Here is the command used to open the terminal from Main Menu entry (or Alt+F2):
xfce4-terminal --geometry=78x20 -T "Kernel Information" -e "bash -c /usr/scripts/kernel-info.sh;bash"
And here is the script "kernel-info.sh":
#!/bin/bash
dpkg --list linux-* | awk '/^ii/{ print $2 }' | grep -e [0-9]
# Script End
--------
Xubuntu 14.04.1, xfce4-terminal 0.6.3