Solved

Startup a software in another machine using script

Posted on 2001-07-06
4
248 Views
Last Modified: 2013-12-27
HI, there

I have two Solaris Boxes, Box A and Box B.

I have account in both of them.

I am the owner of the software in both box.

the connection between A and B is Ok.

I can login each of them and startup.

The problem now is How can i employ script
to do the login and startup the software?

thanks.
Phoebe
0
Comment
Question by:Phoebe
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 14

Expert Comment

by:chris_calabrese
ID: 6260173
{rsh|ssh} machine-name < /dev/null > /dev/null 2>&1 command
0
 
LVL 1

Accepted Solution

by:
k.kidambi earned 100 total points
ID: 6260290
you need to setup the rsh capability on both machines.

make the following entries in .rhosts file in your home directory.

MachineA ur-loginID
MachineB ur-loginID

and try to do

rsh MachineA from MachineB and back

if you are able to do rsh both sides without prompting for a password then you are all set to  run the rsh commands

here is the command you can run

from machineA to MachineB

machineA> rsh machineB /ur-pkg-dir/ur-pkg-binary-file

If you are running ssh (configuration is different for ver 1 and ver 2) then the scnerio is different.

Post your commnets here.

Kidambi
0
 

Author Comment

by:Phoebe
ID: 6263381
Both of you worth the 100 point.
0
 
LVL 38

Expert Comment

by:yuzh
ID: 6263461
Hi Phoebe,

    If the two Sun boxes are in the same network, why don't you setup, NFS or automount (NIS+) to mount the software on the anther machine, so you can use the software just like it is install in the box. I think use NFS is good enough for you if  you have only 2 boxes. if you have a lot
of boxes, NIS+ is the solution.

   I can give you more details if want to do it.

   Cheers

yuzh
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question