I need to inspect from time to time the output of something with tail -f while the above code is continuing its execution, any idea?

|
smol_mazunki 2022-09-15 13:58:10
P 2022-09-15 13:57:42
For sure. There is always a better way ))

But it simple and easy enough to use from time to time

oh yeah, on the command line i do many things

smol_mazunki 2022-09-15 13:58:27
in scripts i tend to overengineer stuff. and i make a lot of wrapper scripts
moogiwaraa 2022-09-15 13:58:37
smol_mazunki 2022-09-15 13:56:54
2) what do you mean?

find -exec vs. find | xargs

marcotrosi 2022-09-15 13:59:30
smol_mazunki 2022-09-15 13:37:18
i never understood the benefit of -exec over piping. any idea?

you can not pipe into all tools, as not all tools support reading from pipe

smol_mazunki 2022-09-15 13:59:53
marcotrosi 2022-09-15 13:59:30
you can not pipe into all tools, as not all tools support reading from pipe

which is why i use xargs

marcotrosi 2022-09-15 14:00:44
hello and welcome @LorYn78 @ejidochi and @sarmong
P 2022-09-15 14:02:15
marcotrosi 2022-09-15 13:59:30
you can not pipe into all tools, as not all tools support reading from pipe

So, it depends.

You have:

– piping
– wrapping
– reading from file
– -exec option

Usage depends on what tool acceps and what is faster to remember and type 🙂

P 2022-09-15 14:02:42
xargs and parallel also
raytracer9 2022-09-15 14:19:04
thecatvoid 2022-09-15 12:30:14
there is icat which is inode cat so..

Yeah, it’s different thing

marcotrosi 2022-09-15 15:37:55
https://github.com/ellie/atuin

GitHub – ellie/atuin: 🐢 Magical shell historyGitHub
🐢 Magical shell history. Contribute to ellie/atuin development by creating an account on GitHub.
andykluger 2022-09-15 17:42:58
using broot, which allows you to interactively search by content as well
marcotrosi 2022-09-15 20:50:48
anybody familiar with the Blender3D nodes?
I always wanted to create such a GUI for ImageMagick
But now I found this
https://github.com/joeyballentine/chaiNNer
n0madcoder 2022-09-15 20:56:05
marcotrosi 2022-09-15 20:50:48
anybody familiar with the Blender3D nodes?
I always wanted to create such a GUI for ImageMagick
But now I found this
https://github.com/joeyballentine/chaiNNer

I am familiar, yeah
The repo looks amazing except for the languages used 😅

n0madcoder 2022-09-15 20:57:53
marcotrosi 2022-09-15 20:50:48
anybody familiar with the Blender3D nodes?
I always wanted to create such a GUI for ImageMagick
But now I found this
https://github.com/joeyballentine/chaiNNer

There’s https://github.com/Immediate-Mode-UI/Nuklear for C

GitHub – Immediate-Mode-UI/Nuklear: A single-header ANSI C immediate mode cross-platform GUI libraryGitHub
A single-header ANSI C immediate mode cross-platform GUI library – GitHub – Immediate-Mode-UI/Nuklear: A single-header ANSI C immediate mode cross-platform GUI library
marcotrosi 2022-09-15 21:15:01
n0madcoder 2022-09-15 20:56:05
I am familiar, yeah
The repo looks amazing except for the languages used 😅

😂 same thoughts

moogiwaraa 2022-09-16 04:58:23
unixusergroup-50325.jpg
Off-topic issue: Anyone faced this “Your browser is being managed by your organization” thing in firefox?
mendel7 2022-09-16 05:00:43
moogiwaraa 2022-09-16 04:58:23
unixusergroup-50325.jpg
Off-topic issue: Anyone faced this “Your browser is being managed by your organization” thing in firefox?

yeah i think it’s how distros set default policies in ff

moogiwaraa 2022-09-16 05:01:18
Oh I was kinda scared🤪
mendel7 2022-09-16 05:03:42
moogiwaraa 2022-09-16 05:01:18
unixusergroup-50325.jpg
Oh I was kinda scared🤪

might be this
https://github.com/archlinux/svntogit-packages/blob/packages/firefox/trunk/PKGBUILD#L73

svntogit-packages/PKGBUILD at packages/firefox · archlinux/svntogit-packagesGitHub
Automatic import of svn ‘packages’ repo (read-only mirror) – svntogit-packages/PKGBUILD at packages/firefox · archlinux/svntogit-packages
moogiwaraa 2022-09-16 05:16:55
mendel7 2022-09-16 05:03:42
unixusergroup-50325.jpg
might be this
https://github.com/archlinux/svntogit-packages/blob/packages/firefox/trunk/PKGBUILD#L73

Using Pop, might be similar things

moogiwaraa 2022-09-16 05:22:40
Yeah same in debian ubuntu systems
Kueppo 2022-09-16 21:47:03
while true; do echo -e “onentwonthree”; sleep 1; done | sed -ne ‘s/(.*)/look: 1/p’ | tee -a something

I’m starting to wonder if the flow of data between theses pipes is sync, sed keeps it for himself and as a consequence cat something is empty.

I need to inspect from time to time the output of something with tail -f while the above code is continuing its execution, any idea?

marcotrosi 2022-09-16 21:48:25
does tee at the end make even sense?
Kueppo 2022-09-16 21:49:25
I was testing many alternatives, I first did >> and something was still empty.
marcotrosi 2022-09-16 21:49:31
and how does the endless loop end?
marcotrosi 2022-09-16 21:50:09
I mean, currently it looks like sed is never reached
Kueppo 2022-09-16 21:50:37
This one is just an example, the real code is too big to paste it here

while true; do echo -e “onentwonthree”; sleep 1; done | sed -ne ‘s/(.*)/look: 1/p’ >> something

the same people.

Kueppo 2022-09-16 21:50:54
marcotrosi 2022-09-16 21:50:09
unixusergroup-50325.jpg
I mean, currently it looks like sed is never reached

Yes, exactly.

marcotrosi 2022-09-16 21:50:55
marcotrosi 2022-09-16 21:50:09
unixusergroup-50325.jpg
I mean, currently it looks like sed is never reached

but still

marcotrosi 2022-09-16 21:51:14
ya cause your endless loop is endless
Kueppo 2022-09-16 21:52:02
Yeah but thought that should not prevent me from viewing the content of something.
marcotrosi 2022-09-16 21:52:19
ya but there is no text in something
marcotrosi 2022-09-16 21:52:29
the sed part is never executed
marcotrosi 2022-09-16 21:52:42
because the shell is stuck in your while loop
Kueppo 2022-09-16 21:53:03
it seems to write to something at end.
|