I wrote a script to call terminal and run a series of commands. The terminal comes up but no result of the other commands.
I named the file show-services-status.sh dropped it in the home directory and made it executable using chmod +x
show-services-status.sh contain the following commands:
gnome-terminal
echo "Display Manager Status"
sudo systemctl status display-manager.service
echo "System Log Status"
sudo systemctl status syslog.service
- Why does the terminal comes up without showing the result of the other commands?
- I started terminal manually and executed
bash show-services-status.sh
it worked but i have to press q on the keyboard before i see the result of the next command. how can this be eliminated?
thanks