Consultor Eletrônico



Kbase P96086: How to copy a database in batch mode when target database exists?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   16/10/2008
Status: Unverified

GOAL:

How to copy a database in batch mode?

GOAL:

How to run "procopy" or "prodb" in batch mode when target database already exists?

FIX:

If target database already exists, an attempt to run "procopy" or "prodb" in batch mode will fail. Progress expects you to answer the question "Database <target> already exists, do you want to replace it? (y
)"
In order to avoid typing "y" explicitly, you can run the following command:
echo Y | procopy <target> <source>
The special character after "Y" is "pipe". The above syntax works on both Unix and Windows operating system.