Solved

Startup a software in another machine using script

Posted on 2001-07-06
4
244 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
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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Using Grep to Find a file 8 91
remove a combination of patterns from a file 15 67
Unix Command -- Challenging  question 7 90
Unix/bash: scripted arithmetic 13 99
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
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.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

770 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