How to execute linux script line by line

Hi All,
I have created one startup.sh file. which contain below
script. I want to start all service(meclipse, mycomputer,firefox..) with single shot. My problem is only one service can open at a time. If i close that particular service only second service will start.

cd /root/Genuitec/MyEclipse\ 8.5
./myeclipse
nautilus --no-desktop --browser  
cd /home/sivaraj/download/mysql-gui-tools-5.0
./mysql-query-browser
cd /usr/local/OnTime
./onTime 
cd /usr/bin
./thunderbird
cd /root/Genuitec/MyEclipse\ 8.5
./myeclipse &
nautilus --no-desktop --browser &  
cd /home/sivaraj/download/mysql-gui-tools-5.0
./mysql-query-browser &
cd /usr/local/OnTime
./onTime &
cd /usr/bin
./thunderbird &
1 Like

Alternatively;

You can use /etc/rc.local file.

 
cd /root/Genuitec/MyEclipse\ 8.5
./myeclipse
sleep 30
nautilus --no-desktop --browser  
cd /home/sivaraj/download/mysql-gui-tools-5.0
./mysql-query-browser
sleep 30
cd /usr/local/OnTime
./onTime
sleep 30
cd /usr/bin
./thunderbird
1 Like

@getrue: Putting those lines in rc.local would do no good, as that is run when the system boots. Those programs, however, need a logged-in user, so most of them would fail. And it's not guaranteed that the required X11 server is already up at that stage.

1 Like