Starting gnome-terminal in foreground?

Josef Wolf jw at raven.inka.de
Fri Aug 12 12:45:56 UTC 2016


On Fri, Aug 12, 2016 at 10:54:58AM +0100, Colin Law wrote:
> On 12 August 2016 at 09:48, Josef Wolf <jw at raven.inka.de> wrote:

> >    #!/bin/sh
> >    gnome-terminal -e wget http://some-host/some-large-tarball.tar.gz
> >    echo "Done"
> >
> Why not just run wget directly rather than invoking a terminal window?

Because wget was just an example.

In reality, I want to checkout a branch of a git repository into a temporary
tree and start a shell to give the user a chance to do whatever he wants to
do with this branch. When done, the temporary directory should be deleted
again to clean up.

With the default behavior of gnome-terminal, the directory will be deleted
before the user had a chance to do anything.

-- 
Josef Wolf
jw at raven.inka.de




More information about the ubuntu-users mailing list