Linux scripts -- 2

Job ID: 31065606

Budget: $10 – $30 USD

I can use below script to run from root user..

su - db2inst1 -c 'db2start && \
(sh -x abc.sh test1 test2 || exit 0)'

But I want to execute above script in 2 steps..

1. su - db2inst1 ( which help to login )
2. need to execute( -c 'db2start && (sh -x abc.sh test1 test2 || exit 0) ) after execute 1st command.

If any one more familiar either linux or docker cmd , you can answer in shot time..

Still now no one can answer for this.
Related categories: Linux Shell Script