Re: [hatari-users] hatari-prg-args not working quite right

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-users Archives ]


On Mon, 29 Jan 2024 01:03:37 +0200
Eero Tamminen <oak@xxxxxxxxxxxxxx> wrote:

> Please make sure that TOS can launch the program when you give that
> same program path to Hatari with the "--auto" option, before using 
> "hatari-prg-args" to provide command line arguments for the launched 
> program.

It does.

I neglected to mention that this all worked under Debian 12, Bullseye,
where the version was 2.3.1+dfsg-1

> I do not see in trace output any attempt for TOS to launch given 
> program. Are you sure you used Hatari "--trace os_base" option?

I did not.

--trace-file, by the way, turned out to not work right. It creates the
file, but then fails to re-direct the output. e.g.:

hatari --trace-file ~/hatari.$(date +%Y.%m.%d-%H.%m.%S).txt -m \
 --auto 'C:\FF\FAST4TH.TTP' &

Easily fixed with a bit of redirection, of course.

Anyway, I finally got a trace (attached) with this (wrapped) command
line:

hatari-prg-args -q -m --trace os_base -- 'C:\FF\FAST4TH.TTP' 3 load  &>
~/hatari.args.prg.$(date +%Y.%m.%d-%H.%M.%S).txt

-- 
Does anybody read signatures any more?

https://charlescurley.com
https://charlescurley.com/blog/

Attachment: hatari.args.prg.2024.02.01-14.52.16.txt
Description: Binary data



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/