The hardest part is getting local file access to both directory trees. If you have NFS on the Solaris machine, you can export the Solaris share to the Linux machine and run the compare on the Linux machine (or vice versa, if you prefer).
To compare directories in general, I do this:
The "q" option limits the output to just the names of the files instead of details and the "-x .svn" is because I don't want it comparing my Subversion work directories, since they're not important here.
Customer surveys are for companies who didn't pay proper attention to begin with.
Joined: Mar 29, 2011
I tried that diff for local directories.
Problem is dir B is in remote host.
I do not know if i can do NFS. If so how to do that?
I agree with Tim in that getting the network bit right is the key.
There are multiple options here.
1. ftp - you might be able to install ftp service with user permissions.
a. set up ftp on one machine and get the recursive directory listing from another machine using sftp.
2. If you have admin rights, check out NFS way
You need to install nfs server, edit /etc/exports file and start the server.
Then mount the remote folder in A to to a local folder in machine B and compare.
3. if you have access to the web interface of this machine and if it is possible to expose the folder structure via the web interface you could you wget
4. setup rsync between remote and local server.
Any of these will work depending on the permission levels you have on these machines.
subject: need script to compare directories in two different servers