Micha Feigin <[EMAIL PROTECTED]> writes: > I am trying to open urxvtd (the urxvt unicode daemon) from .xsession > and urxvtc (the client). The problem is that the client needs for the > daemon to start first so I need to wait. I can't figure out how to > implement such a wait. > > The following causes nothing to happen > exec sleep 1 && urxvtc & > or > exec sleep 1 && ( urxvt & ) & > and this causes X to exit immediatly > exec sleep 1 && ( urxvtc & ) > or > exec sleep > exec urxvtc & > > Any pointers?
`exec' doesn't start a new process, but replaces the current (shell) process. Statements like `exec FOO && BAR' don't make sense: Since `FOO' replaces the shell, `BAR' can never be executed. Just leave out the `exec', or use it as the last statement in a subshell: ( sleep 1 && exec urxvtc ) & Martin -- ,--. ,= ,-_-. =. / ,- ) Martin Dickopp, Dresden, Germany ((_/)o o(\_)) \ `-' http://www.zero-based.org/ `-'(. .)`-' `-. \_/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]