NOTE :- This is not a duplicate question
. I have searched about 100 times on this site and several others including Ubuntuforums,askubuntu and stackoverflow. I couldn't get my work done.
OBJECTIVE :- I want to have a command running on three different terminals which will all start with the login of the user. The 3 terminals will be opened simultaneously without any inter-relationship.
How can I achieve this? I tried doing things which I have listed below :-
Added script for doing this at
system startup(using /etc/init.d and making symbolic links in rc2.d)
which started the services but didn't show the processes running in the terminals.Took direct help of rc.local(inside rc.d) and appended the commands in that file as suggested somewhere. That also did the same as first.
Directly used the
autostart-program
options to start programs manually after login of the user. This too failed to open the terminal.
My Script content :-
#! /bin/bash
gnome-terminal -e "watch sensors"; ### this is working, others aren't.
gnome-terminal -e gedit /etc/hostname ### not working
gnome-terminal -e processing /home/Desktop/samudra_gui/samudra_gui.pde
QUESTION :- HOW SHOULD I ACHIEVE THIS ??? WHAT SHOULD I DO SO THAT THE 3 TERMINALS DON't AUTOCLOSE AFTER EXECUTING 3 COMMANDS AFTER LOGIN ? PLEASE HELP!