[GNC] previous issue with gnucash-cli on macOS
gnucash at kcburns.com
gnucash at kcburns.com
Thu Jan 2 12:05:25 EST 2025
Is solved!!
Note the command I am using does not have the "file:" in it, because it
fails when that is included.
Thanks to everybody involved.
Ken
On 12/31/24 9:08 PM, gnucash at kcburns.com wrote:
> Jim DeLaHunt, I think you have a BINGO!
>
>
> Last login: Tue Dec 31 15:47:12 on ttys000
> kcburns at Mac001 ~ % /Applications/GnuCash.app/Contents/MacOS/gnucash-cli
> -Q get /Users/kcburns/GnuCash/KCBurns.gnucash
> Application Path /Applications/GnuCash.app/Contents/MacOS/gnucash-cli
> Found Finance::Quote version 1.64.
> kcburns at Mac001 ~ %
>
>
> That is the result I expected to see!
>
> I think I was had by the copy & paste.
>
> I have already updated my quotes for this evening, so I will verify it
> on Thursday after the market reopens.
>
> Thanks,
>
> Ken
>
>
> On 12/31/24 4:45 PM, gnucash-user-request at gnucash.org wrote:
>> Hello, KCBurns:
>>
>> On 2024-12-31 12:52,gnucash at kcburns.com wrote:
>>> Last login: Tue Dec 31 15:24:15 on console
>>> kcburns at Mac001 ~ %
>>> /Applications/GnuCash.app/Contents/MacOS/gnucash-cli -Q get
>>> /Users/kcburns/GnuCash/KCBurns.gnucash
>>>
>>> Application Path /Applications/GnuCash.app/Contents/MacOS/gnucash-cli
>>> Missing data file parameter
>>>
>>> gnucash-cli [options] [datafile] - GnuCash, accounting for personal
>>> and small business finance:
>> ... [help text elided] ...
>>
>>> ? --output-file arg????? Output file for report
>>>
>>>
>>> zsh: exec format error: /Users/kcburns/GnuCash/KCBurns.gnucash
>>> kcburns at Mac001 ~ %
>>>
>> It looks like your command is now spelled correctly, but it is broken
>> into two lines in the email message.? Is that just an artifact of email
>> line wrapping, or is there in fact a linefeed character in your command
>> line?
>>
>> I see that Gnucash says, "Missing data file parameter", as if all it saw
>> was "/App?/gnucash-cli -Q get". Then the Terminal shell ("zsh") says,
>> "zsh: exec format error: /Users/kcburns/GnuCash/KCBurns.gnucash", as if
>> it was trying to run "/Users/kcburns/GnuCash/KCBurns.gnucash" as a command.
>>
>> Perhaps try to enter the command again, but being careful of the
>> spelling and spacing?
>>
>> e.g. Copy "/Applications/GnuCash.app/Contents/MacOS/gnucash-cli -Q get"
>> from your previous command, then type a space character, then copy
>> "/Users/kcburns/GnuCash/KCBurns.gnucash" from your previous command,
>> then press Return. See if that gets interpreted as a single command.
>>
More information about the gnucash-user
mailing list