Sonntag, 7. Juni 2015

Script to open console with tabs that execute commands (and stay open)


Replace "ifconfig" and "ping ..." with your own commands. The "exec bash" part is necessary so that the tab doesn't close when the command is finished.

#!/bin/sh
gnome-terminal \
--tab -e "bash -c \"ifconfig; exec bash\"" \
--tab -e "bash -c \"ping www.google.com; exec bash\""


Keine Kommentare:

Kommentar veröffentlichen