The question is somewhat related to the question asked here, https://stackoverflow.com/questions/5130847/shell-multiple-commands-in-one-line, but the difference is, I need to execute the whole commands whether or not the commands are successful or not. So I presume, &&
is not an option right?
Can I use ;
separated commands and eval
or bash
;
something like
eval cd /home/user/homedir ; /home/user/homedir/sbin/daemon.sh --config /home/user/homedir/etc/dd2 --script /home/user/homedir/sbin/dd3 start action1
or something like that?
Please advise,
/home/user/homedir/sbin/daemon.sh --config /home/user/homedir/etc/dd2 --script
/home/user/homedir/sbin/dd3 start action1
all one command? What can you tell us about what/home/user/homedir/sbin/daemon.sh
does? (Also, why do you want tocd
to/home/user/homedir
and then use full pathnames?)