home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 11 Util
/
11-Util.zip
/
CONCPY.ZIP
/
CONCOPY.DOC
next >
Wrap
Text File
|
1991-01-31
|
7KB
|
151 lines
CONCOPY/2 1.00
--------------
CONCOPY/2 is an OS/2 program that duplicates standard output and
standard error to a disk file. It is similar in concept to
redirecting program output to a disk file, except that (1) it
continues to work until you end it, and (2) you can still see the
data being sent to the screen. Thus, you can work interactively
while CONCOPY is active, yet still maintain a disk record of screen
activity.
CONCOPY/2 is adapted from CONCOPY, a similar program for DOS by the
same author.
Running CONCOPY/2
-----------------
To start copying console output to a file, just type
CONCOPY [d:][path]file[.ext] [command {arguments}]
The optional [command] is discussed in the next section.
Normal usage is quite simple; for example, the command
CONCOPY c:\temp\screen.dat
will copy screen output to a disk file called SCREEN.DAT in directory
C:\TEMP. CONCOPY opens the disk file and executes a secondary copy
of the command shell (normally CMD.EXE); you'll see the OS/2 logo and
command prompt. You can then execute as many programs and commands
as you wish, run batch files, use standard redirection, etc.;
anything sent to the console using standard OS services will be
copied to the disk file.
If the specified disk file already exists, the new data will be
appended to it.
To terminate CONCOPY, type EXIT at the OS/2 command prompt.
CONCOPY affects only the session in which it was started. If you
want to use CONCOPY in a separate session, START it from the command
prompt:
START "concopy" CONCOPY c:\temp\screen.dat
Executing specific commands
---------------------------
If you specify a command on the CONCOPY command line, CONCOPY will
have CMD.EXE execute that command rather than display a prompt.
You won't see the OS/2 logo or prompt, and you won't have to type
EXIT to terminate CONCOPY. For example:
CONCOPY screen.dat someprog
In this case, CONCOPY will run SOMEPROG (using CMD.EXE) and record
its screen activity in SCREEN.DAT. As soon as SOMEPROG ends, CONCOPY
will also be terminated.
Note in particular that the command can be a batch file. If you have
a batch file called BIGBAT.CMD:
CONCOPY screen.dat bigbat
CONCOPY will run BIGBAT.BAT for you and record screen activity.
The use of specific commands allows you to automate the process of
capturing screen data if it's necessary for you to do this on a
regular basis.
What gets copied to disk
------------------------
CONCOPY will capture any data sent to the console device using
standard DOS file I/O services. Both STDOUT (file handle 1) and
STDERR (file handle 2) are captured. Like standard output
redirection, data written using the "Vio" services will not be copied
to the file. The general rule is, if output redirection (either > or
2>) won't work, then CONCOPY won't either.
If any of your programs use ANSI escape sequences to control the
screen, these control sequences will copied into the file. If you
later TYPE the file, the sequences will be re-interpreted by
ANSI.SYS, duplicating the original effects (screen clearing, color
changes, cursor movement, etc.). However, if you use a non-ANSI
technique to look at the file (text editors, file browsers,, etc.),
you'll see the ANSI control sequences mixed in with the text.
Likewise, printing the file may present problems, because your
printer may try to interpret the ANSI sequences as its own control
codes.
The file to which the screen data is being copied is continuously
open while CONCOPY is running. We suggest that you avoid examining,
manipulating, or deleting this file while CONCOPY is running; you'll
probably get a file sharing violation if you try to do so, anyway.
Release history
---------------
Version 1.00 - 1/31/91
Initial release
Copyright/License/Warranty
--------------------------
This document and the program file CONCOPY.EXE ("the software") are
copyrighted by the author. The copyright owner hereby licenses you
to: use the software; make as many copies of the program and
documentation as you wish; give such copies to anyone; and distribute
the software and documentation via electronic means. There is no
charge for any of the above.
However, you are specifically prohibited from charging, or requesting
donations, for any such copies, however made; and from distributing
the software and/or documentation with commercial products without
prior written permission. An exception is granted to not-for-profit
user's groups, which are authorized to charge a small fee (not to
exceed $7) for materials, handling, postage, and general overhead.
NO FOR-PROFIT ORGANIZATION IS AUTHORIZED TO CHARGE ANY AMOUNT FOR
DISTRIBUTION OF COPIES OF THE SOFTWARE OR DOCUMENTATION, OR TO
INCLUDE COPIES OF THE SOFTWARE OR DOCUMENTATION WITH SALES OF THEIR
OWN PRODUCTS.
THIS INCLUDES A SPECIFIC PROHIBITION AGAINST FOR-PROFIT ORGANIZATIONS
DISTRIBUTING THE SOFTWARE, EITHER ALONE OR WITH OTHER SOFTWARE, AND
CHARGING A "HANDLING" OR "MATERIALS" FEE OR ANY OTHER SUCH FEE FOR
THE DISTRIBUTION. NO FOR-PROFIT ORGANIZATION IS AUTHORIZED TO
INCLUDE THE SOFTWARE ON ANY MEDIA FOR WHICH MONEY IS CHARGED.
There is no restriction on the use of this software in commercial or
institutional environments.
No copy of the software may be distributed or given away without this
document; and this notice must not be removed.
There is no warranty of any kind, and the copyright owner is not
liable for damages of any kind. By using this free software, you
agree to this.
The software and documentation are:
Copyright (C) 1991 by
Christopher J. Dunford
The Cove Software Group
P.O. Box 1072
Columbia, Maryland 21044
(301) 992-9371
CompuServe 76703,2002 [IBMNET]