Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Mar 2005 20:23:52 -0300
From:      Alejandro Pulver <alejandro@varnet.biz>
To:        Gert Cuykens <gert.cuykens@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: .xinitrc
Message-ID:  <20050331202352.20c58955@ale.varnet.bsd>
In-Reply-To: <ef60af0905033115062cfaf90d@mail.gmail.com>
References:  <ef60af0905033115062cfaf90d@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 1 Apr 2005 01:06:15 +0200
Gert Cuykens <gert.cuykens@gmail.com> wrote:

> How do you start two things ?
> 
> exec unclutter -root
> exec enlightenment 
> 
> When i do this it only execute the first one

Hello,

The 'exec' builtin (internal shell command) replaces the current process
image (the shell itself) by the program in the argument. Instead of
executing it as a children (separated) process, so when the process
finishes it returns back to the shell (like typing a command). So when
the shell replaces itself with 'unclutter', it is not the shell anymore,
so it never comes back to execute 'enlightenment'.

The solution can be to run the first command in the background
(apart from the shell) like this:

unclutter -root &
exec enlightenment

See sh(1) (section 'exec' and 'jobs').

Best Regards,
Ale



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050331202352.20c58955>