TIP: Click on subject to list as thread! ANSI
echo: mystic
to: g00r00
from: Bjrn Wiberg
date: 2021-08-03 16:36:00
subject: Re: LHZ/LZH for Windows (

Hello g00r00!

ARJ and 7-ZIP revisited. :)

On 02 Aug 2021, Bj”rn Wiberg said the following...
 BW>  g0> There is no enabled setup for ARJ by default in Mystic but if you wan
 BW>  g0> create a view default feel free to do so and send it over, like any o
 BW>  g0> archiver.
 BW> 
 BW> Tried getting this to work, but didn't quite succeed --

I performed an strace and noticed that Mystic appears to add "/dev/null 2>&1" to the end of the View Cmd command line. This seems to break things. But on Linux, it is possible to perform the following work-around:

     Active ³ Yes
  Extension ³ ARJ
         OS ³ Linux
Description ³ ARJ32 ARJ Utilities (CUSTOM)
   Pack Cmd ³ arj a -e -i -y "%1" "%2"
 Unpack Cmd ³ arj e -e -i -y -w"%3" "%1" "%2"
   View Cmd ³ arj l -i -y "%1" >> "%3%2" 2> /dev/null; exit $? >>

This will preserve the exit status of arj and tame the added /dev/null 2>&1
stuff.

The -i will remove any progress indicator from the output. Unsure if that one actually shows during viewing, as I haven't checked the source code, but it won't hurt, and it is at least good for packing/unpacking, I presume.

Also note that there should be no space between -w and "%3"; it appears to be the same thing for other platforms. Otherwise ARJ might complain and interpret the work directory as an archive file name.

And something similar for 7-ZIP:

       Active ³ Yes
    Extension ³ 7Z
           OS ³ Linux
  Description ³ 7-ZIP (CUSTOM)
     Pack Cmd ³ 7z a -y "%1" "%2"
   Unpack Cmd ³ 7z e -y -o"%3" "%1" "%2"
     View Cmd ³ 7z l -ba -y "%1" >> "%3%2" 2> /dev/null; exit $? >>

D.S.

All comments and thoughts welcome. :)

Best regards
Bj”rn

--- Mystic BBS v1.12 A47 2021/07/31 (Linux/64)
                               
* Origin: Star Collision BBS, Uppsala, Sweden (2:201/137)

SOURCE: echomail via QWK@pharcyde.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.