[GNC] Scheduled Transactions creating but not posting in register
john
jralls at ceridwen.us
Tue Mar 8 00:27:26 EST 2022
> On Mar 7, 2022, at 7:03 PM, smada46 at hotmail.com wrote:
>
> I also opened GnuCash in the Terminal hoping to see what happened when it opened. Gnucash opened, but I got no output using command:
>
> open -a Gnucash.app
>
> Is there something else I need to add to this command to get terminal output when opening Gnucash from Terminal?
>
Using the `open` command in Terminal is the same as double-clicking its icon in Finder: It tells Launch Services to start GnuCash either with no stdin, stdout, or stderr or with stdout and stderr connected to Console.app depending on macOS version. To have a stdin, stdout, and stderr connection to the shell running in Terminal you must run GnuCash directly; if you installed it in /Applicattions you'd use
/Applications/Gnucash.app/Contents/MacOS/Gnucash
By default GnuCash writes its log to a file named gnucash.trace. This is most easily accessed using an environment variable $TMPDIR, so you could use
less $TMPDIR/gnucash.trace
to read it. On macOS and other unix platforms it is overwritten with every launch of GnuCash. You can read more about it at https://wiki.gnucash.org/wiki/Tracefile <https://wiki.gnucash.org/wiki/Tracefile>.
To get GnuCash to write to the terminal, pass --logto=stderr on the terminal command above. More information about how to configure logging may be found at https://wiki.gnucash.org/wiki/Logging <https://wiki.gnucash.org/wiki/Logging>.
Regards,
John Ralls
More information about the gnucash-user
mailing list