.xinitrc

Alejandro Pulver alejandro at varnet.biz
Thu Mar 31 15:23:05 PST 2005


On Fri, 1 Apr 2005 01:06:15 +0200
Gert Cuykens <gert.cuykens at 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


More information about the freebsd-questions mailing list