Operating System - Tru64 Unix
1829904 Members
2275 Online
109993 Solutions
New Discussion

Re: environment comparison

 
Yo Ch
New Member

environment comparison

I want to know on what basis can we compare the environment in production and dev boxes in TRU64.
4 REPLIES 4
Ivan Ferreira
Honored Contributor

Re: environment comparison

I don't understand your question, there are very different environments, and also, depends of the company policy.

For example, we have dev, pre-production and proeduction.

Developers does not have access to pre-producition and production. Pre-production is used to ensure programs quality.

Development server is comparable in the operating system, application versions, etc, but access and permissions are less strict.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Yo Ch
New Member

Re: environment comparison

I want to compare the dev box and the production box as in the directory structure and . We are building one application for the company and I have to see what is thr on the prod box and wht is thr on the dev box. Also I have to create a similar environment of what is thr on production using scripts as I have to automate it using build scripts. I have to write deployment scripts which is a big task in itself.
Rob Leadbeater
Honored Contributor

Re: environment comparison

Hi,

If you want to compare the directory structure then something like:

On the Production box:
# cd /
# ls -lR > prod.txt

On the dev box:
# cd /
# ls -lR > dev.txt

Get prod.txt and dev.txt onto the same machine and then diff them.

# diff prod.txt dev.txt


However I somehow doubt this is what you really want to achieve...

Hope this helps,

Regards,

Rob
Arturo Galbiati
Esteemed Contributor

Re: environment comparison

Hi,
on production box as root:
cd /
find . -type d >prod.txt

on dev box as as root:
cd /
find . -type d >dev.txt

sdiff prod.txt env.txt

N.B. Using find you are able to sse also hiddien directories (starting with dot).

I also sugegst to compare the environemnt variable as well on both boxes by 'env' command. This can aslo incluence your script.

HTH,
Art