bash - Linux: How to auto open terminal when a script is run -


ok, going write script , need auto open xterm when double-click (similar bat on windows). needs work on desktop includes xterm. example check if running in xterm if not reopen in xterm , if script continue process. sorry if has been asked unable find life of me.

you can follows:

xterm -e program [ arguments ... ] 

from linux man page...

this option specifies program (and command line arguments) run in xterm window. sets window title , icon name basename of program being executed if neither -t nor -n given on command line. must last option on command line.


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -