Simpler Navigation for Servers and Operating Systems
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
General
cancel
Showing results for 
Search instead for 
Did you mean: 

how to open a terminal via a shell script

nav882
Advisor

how to open a terminal via a shell script

how to open a terminal via a shell script.and run commands in that terminal.Also how to pass a url to a browser via shell script
8 REPLIES
Oviwan
Honored Contributor

Re: how to open a terminal via a shell script

Hey

You can use remsh to execute a command on a remote box.

Check man remsh

Regards
Oviwan
Honored Contributor

Re: how to open a terminal via a shell script

Hey (again)

what would you do with the browser?

check the wget command perhaps that's for your issue

Regards
nav882
Advisor

Re: how to open a terminal via a shell script

hi ,
i got 3 scripts.where i run 1 script and thr u it it i link the othr 2.now just c the messgaes in the scripts,(i.e, executing properly or not)i need 3 different terminals/Else jst tel me how to run the commands in the background.And remsh is not working on my linux machine
Oviwan
Honored Contributor

Re: how to open a terminal via a shell script

run script in background:

./scriptname.sh &

remsh:
you have to configure it on each machine. read man remsh. you'll see how to configure the .rhosts files.

final command:

#remsh remote_host /path/to/remote/script.sh &

hope this helps

Regards
Oviwan
Honored Contributor

Re: how to open a terminal via a shell script

instead of remsh you can also use rsh...
Rick Beldin
Esteemed Contributor

Re: how to open a terminal via a shell script

For firefox, try:

firefox -url http://google.com

This will connect to the currently running browser on the display. If no instance of firefox by that user is running, a new instance of firefox will be launched.
Necessary questions: Why? What? How? When?
Mike Stroyan
Honored Contributor

Re: how to open a terminal via a shell script

You can start a terminal with the gnome-terminal command. That assumes that you have a gnome based linux distribution.
Something like this-

gnome-terminal -e script1
gnome-terminal -e 'script2 arg1 arg2'
nav882
Advisor

Re: how to open a terminal via a shell script

thanks man,it really helped.