English Amiga Board


Go Back   English Amiga Board > Coders > Coders. System > Coders. Scripting

 
 
Thread Tools
Old 24 January 2024, 09:23   #1
Krashan
Hardware Designer
 
Join Date: Aug 2018
Location: Bialystok/Poland
Age: 50
Posts: 178
Redirecting LhA output

I'm writing an Installer script. In this script I need to unpack many files from an LhA archive. Not a problem with Installer
run
statement. Works fine.

However on 68020 @ 28 MHz machine this unpacking takes about a minute. During this time Installer just shows busy pointer and has its UI disabled. Would be nice to display LhA output in a console window, so the user knows what is going on.

To my surprise, plain redirection does not work. For example:

Code:
LhA x somearchive.lha RAM: >CON:////Depacking/AUTO/CLOSE/WAIT
just opens a console window, then nothing, furthermore LhA seems to hang.

Tried with LhA 2.2.
Krashan is offline  
Old 24 January 2024, 10:23   #2
hooverphonique
ex. demoscener "Bigmama"
 
Join Date: Jun 2012
Location: Fyn / Denmark
Posts: 1,624
Often times, informational output is printed to stderr, so maybe you need to redirect that
hooverphonique is offline  
Old 24 January 2024, 10:36   #3
Krashan
Hardware Designer
 
Join Date: Aug 2018
Location: Bialystok/Poland
Age: 50
Posts: 178
Quote:
Originally Posted by Krashan View Post
Tried with LhA 2.2.
Seems like it is a problem of this particular version of LhA. Works as expected with 2.15.
Krashan is offline  
Old 24 January 2024, 12:49   #4
daxb
Registered User
 
Join Date: Oct 2009
Location: Germany
Posts: 3,304
You may try the lha option "-D" Alternate progress display.
daxb is offline  
Old 24 January 2024, 13:01   #5
Krashan
Hardware Designer
 
Join Date: Aug 2018
Location: Bialystok/Poland
Age: 50
Posts: 178
Quote:
Originally Posted by daxb View Post
You may try the lha option "-D" Alternate progress display.
With LhA 2.2 it does not help. LhA 2.15 is OK with or without -D. I have also tested -Qa (simplified console I/O), with the same result. My conclusion is, LhA 2.2 is broken in this regard.
Krashan is offline  
Old 24 January 2024, 13:46   #6
daxb
Registered User
 
Join Date: Oct 2009
Location: Germany
Posts: 3,304
Yes, seems it was fixed in later version: http://aminet.net/package/util/arc/lha_68k
daxb is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
redirecting error output to a file jotd support.Apps 3 06 April 2023 01:59
Trying to archive an lha file inside a new lha file Foebane support.Apps 6 11 December 2019 21:08
COMP output Enverex support.Hardware 19 16 February 2004 19:53
MPEG output? Fackamato support.WinUAE 2 31 October 2003 10:42
Output question Fackamato support.WinUAE 2 02 September 2003 18:54

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 09:30.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.07026 seconds with 15 queries