The general form of an executable script is
If the command is meant to display an output in a terminal
#!/bin/bashBut the terminal would close with the command and the output will not be seen. So, go to Edit -> Profile Preferences -> Title. Click the Command tab. Select Hold the terminal from the drop-down menu labelled When command exits.
gnome-terminal -e "
- the printer status (outputs 2 numbers if ok)
#!/bin/bash gnome-terminal -e "/etc/init.d/ccpd status"