BASH Scripting

Paul Gear paul at libertysys.com.au
Tue Feb 28 11:03:42 UTC 2012


On 28/02/12 17:38, David Bowskill wrote:
> Hello All
>
> Could someone kindly please tell me how to write a BASH script, which
> opens up a terminal (easy) and, in that opened terminal, runs a
> pre-existing program.
> Thanks
>
> David

Here's a start:

#!/bin/sh
# Assumes you use gnome2 - might be different on Unity; will be
different on KDE
# Quoting might need to be different if your command has quotes
gnome-terminal -t "Window Title" -e "command to run" &

Run 'man gnome-terminal' for more options...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: paul.vcf
Type: text/x-vcard
Size: 203 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-au/attachments/20120228/d0194d96/attachment.vcf>


More information about the ubuntu-au mailing list