Since -- isn't it so that any output from these commands will be shown
to the user (possibly confusing the user and garbling the "screen" with
a lot of technical mumbo-jumbo)? So one wants to avoid any such output
to the user?
Just curious (as this is a difference for "external" archive viewing between Mystic on Linux and Windows).
I've been thinking some more. Won't push this much further :-D, but:
Just curious (as this is a difference for "external" archive viewing between Mystic on Linux and Windows).
The "best" thing would perhaps be to append (internally, inside Mystic):
Windows: > NUL 2>&1
Linux: > /dev/null 2>&1
In Windows it does not redirect the console through a telnet connection like it does in Unix-based systems, so doing the NUL is just to stop
error messages from an archive leak through to the local screen when
doing local mode logins and when MUTIL is performing archive related functions.
Windows: > NUL 2>&1
Linux: > /dev/null 2>&1
Mystic's local console API in Windows already takes over STDIN and
STDOUT.
That's what currently happens for Linux, and the reason for needing a construct like >> "%3%2" 2> /dev/null; exit $? at the end of the View
Cmd on Linux. Easy, but unnecessary, should Mystic instead only "eat" stderr of the View Cmd on Linux. :)
The intention here is to block STDOUT because redirecting raw output of STDOUT from an archive utility was something I considered a security risk. It will likely expose all of the directory structure of your system which makes it easier to exploit (if one were to exist).
Sysop: | Rempala |
---|---|
Location: | Richlands, NC |
Users: | 106 |
Nodes: | 10 (0 / 10) |
Uptime: | 41:13:13 |
Calls: | 205 |
Files: | 6 |
Messages: | 111,123 |