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/bashgnome-terminal -e watch sensors;   ### this is working, others aren't.gnome-terminal -e gedit /etc/hostname  ### not workinggnome-terminal -e processing /home/Desktop/samudra_gui/samudra_gui.pdeQUESTION :- 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!
Running a program (command) on terminal after login screen in Ubuntu 14.04
ubuntu;scripting;terminal;login;startup
may try:gnome-terminal -e bash -c 'watch sensors'gnome-terminal -e bash -c 'gedit /etc/hostname'gnome-terminal -e bash -c 'processing /home/Desktop/samudra_gui/samudra_gui.pde'and start this script from .bashrc or write this in .bashrc