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.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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)

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
Become a CompTIA Certified Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

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.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.