add code to enable ollama cli cmd logging , or disable the new ' if not tty exit ' code PLZZ #5075

Open
opened 2025-11-12 12:43:09 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @fxmbsw7 on GitHub (Dec 3, 2024).

What is the issue?

i have .bashrc like to log ollama cmds

newly , this completly stopped working ..
neither

tee -a $somelog < <( ollama .. )
nor

ollama |& tee -a $log
nor

ollama > >( cat )

.. stay alive

.. they exit after ai answers , .. or exit after loading model if no text as cli arguments are given

.. before it wasnt perfect but now .. :))

my solution is make tty check either somehow optional , or throw it away .. ..

greets ..

btw this is on android phone on termux compiled
.. i suppose that tty check is a general one ,
. eg same on debian and else ...

OS

Linux

GPU

Other

CPU

Other

Ollama version

0.0.0 ( 0.4.5 or so via git )

Originally created by @fxmbsw7 on GitHub (Dec 3, 2024). ### What is the issue? i have .bashrc like to log ollama cmds newly , this completly stopped working .. neither tee -a $somelog < <( ollama .. ) nor ollama |& tee -a $log nor ollama > >( cat ) .. stay alive .. they exit after ai answers , .. or exit after loading model if no text as cli arguments are given .. before it wasnt perfect but now .. :)) my solution is make tty check either somehow optional , or throw it away .. .. greets .. btw this is on android phone on termux compiled .. i suppose that tty check is a general one , . eg same on debian and else ... ### OS Linux ### GPU Other ### CPU Other ### Ollama version 0.0.0 ( 0.4.5 or so via git )
GiteaMirror added the bug label 2025-11-12 12:43:09 -06:00
Author
Owner

@fxmbsw7 commented on GitHub (Dec 3, 2024):

i also suggest , about the old way , skipping the on control-c then exit instead of send to prompt , check

there was some disablement alike code that when logging it exited on c-c instead of send back

this is also bad code
or make it optional

@fxmbsw7 commented on GitHub (Dec 3, 2024): i also suggest , about the old way , skipping the on control-c then exit instead of send to prompt , check there was some disablement alike code that when logging it exited on c-c instead of send back this is also bad code or make it optional
Author
Owner

@rick-github commented on GitHub (Dec 4, 2024):

https://github.com/ollama/ollama/issues/7820

@rick-github commented on GitHub (Dec 4, 2024): https://github.com/ollama/ollama/issues/7820
Author
Owner

@fxmbsw7 commented on GitHub (Dec 4, 2024):

ill try implent with script bin util , till its fixed

i hope it gets fixed ..

On Wed, Dec 4, 2024, 1:05 AM frob @.***> wrote:

#7820 https://github.com/ollama/ollama/issues/7820


Reply to this email directly, view it on GitHub
https://github.com/ollama/ollama/issues/7925#issuecomment-2515835716,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AJMLP3KFBMHDKRNSRUGBTVT2DZBMXAVCNFSM6AAAAABS64WPE2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMJVHAZTKNZRGY
.
You are receiving this because you authored the thread.Message ID:
@.***>

@fxmbsw7 commented on GitHub (Dec 4, 2024): ill try implent with script bin util , till its fixed i hope it gets fixed .. On Wed, Dec 4, 2024, 1:05 AM frob ***@***.***> wrote: > #7820 <https://github.com/ollama/ollama/issues/7820> > > — > Reply to this email directly, view it on GitHub > <https://github.com/ollama/ollama/issues/7925#issuecomment-2515835716>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AJMLP3KFBMHDKRNSRUGBTVT2DZBMXAVCNFSM6AAAAABS64WPE2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMJVHAZTKNZRGY> > . > You are receiving this because you authored the thread.Message ID: > ***@***.***> >
Author
Owner

@fxmbsw7 commented on GitHub (Dec 10, 2024):

so yea script -fc ' ollama run .. ' | tee -a
me thinks

@fxmbsw7 commented on GitHub (Dec 10, 2024): so yea script -fc ' ollama run .. ' | tee -a me thinks
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama-ollama#5075