BASH Scripting

0 views
Skip to first unread message

David Bowskill

unread,
Feb 28, 2012, 2:38:38 AM2/28/12
to ubun...@lists.ubuntu.com
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


--
ubuntu-au mailing list
ubun...@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-au

Paul Gear

unread,
Feb 28, 2012, 6:03:42 AM2/28/12
to ubun...@lists.ubuntu.com
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...

paul.vcf

David Bowskill

unread,
Feb 28, 2012, 6:38:47 AM2/28/12
to Paul Gear, ubun...@lists.ubuntu.com
Thanks Paul - very simple when one knows how.
Cheers
David


On 28/02/12 22:03, Paul Gear wrote:
> -t "Window Title" -e "command to run"&
>

Reply all
Reply to author
Forward
0 new messages