• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 230
  • Last Modified:

Diff files between 2 Sun machines

We have 2 Sun machines 6k1 ands 6k2. The 6k1 machine houses all development and staging versions of our source code and the 6k2 machine is where all production versions live. We frequently check production against staging and perform diffs between files. I would like to know if there is a way to perform a diff on files that reside on seperate machines.
1 Solution
1. Best is to mount one mashine on the other, then you can simply run:
      diff file /net/6kX/path/to/file
2.  rsh 6kX cat file|diff file -
    (which needs a proper setup of ~/.rhosts)
ktwillAuthor Commented:
What do mean by Mounting one machine on another? Is this a admin function? I can't do administor task on these machines.
Or /etc/hosts.equiv
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

ktwillAuthor Commented:
I am still confused. I guess I should have added that I am new to UNIX. Mounting and /etc/hosts.equiv don't really mean anything to me. I use man to see if I figure out what you mean. I also apologize if this does not come across correctly I don't mean this negativly.
usually Solaris comes with automounter installed, so you probably can do:
      cd /net/6k2//path

if not, you may try my 2. suggestion, but please read
   man rsh
before, 'cause you need to setup ~/.rhosts (etc/hosts.equiv can only be done by an admin)
Whatever the solution, you will need to have your system admin involved.  There is several solution, I'm sure one of those will be OK with your SysAdmin security policies.  This can be:
- Mounting a read-only file system from one machine to another with NFS
- Mirroring a file system with rdist
- Establishing secure login across machine with rsh & rlogin

ktwillAuthor Commented:
I used your 2) solution and it seemed to solve my problem.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now