.xinitrc, there'll have multiple lines with
& to put some commands in background, I'd like to control if a command is completed or not before process to next command.
.xinitrc file, not
How we can achive this?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
& puts a job in the background and causes execution to continue to the next line. If you want to wait to see whether a command is completed or not, remove the
command1 & command2 & command3
command1 command2 command3
If you want subsequent commands to execute only if the previous command(s) were successful, then chain them together with
command1 && command2 && command3