home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 3 Comm
/
03-Comm.zip
/
mincom15.zip
/
Readme.rzsz
< prev
next >
Wrap
Text File
|
1993-04-22
|
2KB
|
61 lines
**** rz / sz and Minicom ****
If you are using a new version if Chuch Forsenberg's zmodem, it is
possible that it will not run OK in a window. This is because the
new versions *don't* use stdin and stdout, but without mercy they
just open /dev/tty. Ai! I changed the following in the file "rbsb.c"
and now things work allright. You might want to change this also.
Here is the particular function I'm talking about:
--------------------------------------------------------------------
/* Line 336 */
/* Initialize tty device for serial file xfer */
inittty()
{
#ifndef HVM
Tty = open("/dev/tty", 2);
if (Tty < 0) {
perror("/dev/tty"); exit(2);
}
#else
Tty = 1;
#endif
Ttystream = fdopen(Tty, "w");
setbuf(Ttystream, xXbuf);
}
--------------------------------------------------------------------
And to get the Logging output to the screen instead of to /tmp/szlog,
change the following in sz.c :
--------------------------------------------------------------------
if (npats < 1 && !Command && !Test)
usage();
if (Verbose) {
/* Line 403 of sz.c */
#ifndef HVM
if (freopen(LOGFILE, "a", stderr)==NULL) {
printf("Can't open log file %s\n",LOGFILE);
exit(2);
}
#endif
setbuf(stderr, NULL);
}
vfile("%s %s for %s\n", Progname, VERSION, OS);
--------------------------------------------------------------------
You might want to change the same in the file "rz.c" also, around line 249.
It is now possible to use the -v[vv] flag with rz/sz and see the debugging
output appear in the status window!
You have to define 'HVM' to make the change effective, ofcourse!
If you're using these modified versions with Minicom, I recommend that
you add extra verbose flags to rz and sz when calling them. This can be
done easily in minicom; go to the "File transfer protocols" menu and
add the option '-vvv' to all instances of sz, sb, sx, rz, rb and rx.
Please read the copyright notes in the documentation of the Unix zmodem
programs.