Re: Need help for comparing file types from test and prodcution database

From: Michael Heiming (michael+USENET_at_www.heiming.de)
Date: 02/27/05


Date: Sun, 27 Feb 2005 15:11:04 +0100

In comp.unix.shell Hitarth <hitarthd@gmail.com>:
> Hi,

> I need to write a shell script having same filenames on test and
> production database but I need to differentiate them with the timestamp
> as when these files are created or developed on both the servers and
> which are they??..The requirement is :

> 1)Shell script will accept three parameters
> 2)First parameter will be source dir
> 3)Second parameter will be a txt file - that has a list of files
> 4)Third parameter will be destination dir
> 5)Shell script will validate all parameters and then copy all
> 6)files in txt file from source to destination

[..]

> Please come up with the solution so that I can submit my script

Can I submit my bank account data, so you can submit your salary,
after writing the script for you? ;-)

Honestly, I'd just use 'rsync'/'unison' through ssh for the job.

Good luck

-- 
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo zvpunry@urvzvat.qr | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 293: You must've hit the wrong any key.


Relevant Pages

  • Scripting: Zipping files and checking Network Share
    ... I am trying to write a script that performs a few specific ... Copy source files to destination only if they do not exsist on the ... out how to have it loop until a successful connection is made - and send out ... Sub CopySource() ...
    (microsoft.public.scripting.vbscript)
  • Re: Scripting: Zipping files and checking Network Share
    ... I am trying to write a script that performs a few specific ... Copy source files to destination only if they do not exsist on the ... out how to have it loop until a successful connection is made - and send ... Sub CopySource() ...
    (microsoft.public.scripting.vbscript)
  • Re: Need help interpreting a Script for Actie Directory using SubinAC
    ... From what I can find about the tool SubInAcl, <source host> is the ... host> is the new domain (the one we are copying permissions to). ... guess that <destination directory> is a directory name. ... how to interpret the script. ...
    (microsoft.public.scripting.vbscript)
  • Re: DTS Transformation Error
    ... script that the transformation should also copy the Source Table structure ... ' Visual Basic Transformation Script ... ' Copy each source column to the destination column ... programming though I'm reasonably familiar with the DTS UI. ...
    (microsoft.public.sqlserver.dts)
  • To find wether given entry is a file or directory
    ... In this script i have to check whether the dest_dir is a file or ... I used -d and -f command to check wether it is a directory or file. ... The entry is located on a remote computer. ...
    (comp.unix.shell)