Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

executing commands on one host through another

Status
Not open for further replies.

bos

Technical User
Oct 1, 2002
50
US
I am writing a program now which uses rsh to execute commands on various hosts. I would like to know if the following two things are possible and how.

1. Through a korn shell script, I'd like to run several programs without the shell having to wait for one to complete for the other to start. I'd run the programs on dtterms.

2. As I wrote above, my korn program runs programs on several other computers. Instead of all the programs from the other computers running on one computer, can I have the programs on each computer open dtterms and run there.

Please let me know how I might do any of the two things above. Thanks in advance.
 
I cant comment on dtterms,but this might help

Create a shell script of all the commands you wantto run on the remote machine. resh onto the machine and copy this file onto the remote machine,resh to change the mode of the shell script file and then resh again to execute the file.


amit
crazy_indian@mailcity.com

to bug is human to debug devine
 
Under the korn shell you can run a process and not wait for it to finish like this:

find / -print > /tmp/all_files.txt &

The & character at the end of the line is the key. Mike
________________________________________________________________

"Experience is the comb that Nature gives us, after we are bald."

Is that a haiku?
I never could get the hang
of writing those things.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top