this post was submitted on 30 Nov 2026
19 points (95.2% liked)

Linux

68985 readers
788 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 7 years ago
MODERATORS
 

I'm running a script that starts a load of other processes to do its work.

I'm running the script like

systemd-cat -t foo thescript

If two of these script runs happens at once, I can't tell them apart because both will tag with foo and journalctl identifies as foo[123] but 123 seems to be the pid of the process that generated the content. So if 123 is the pid of the thescript process at the start, it changes during the run of that script when a process launched by that script generates output.

I'd like a solution like: the 123 is always the parent script's pid. Or some other way to add field data in that could then be used to separate out the separate runs.

Anyone got any suggestions?

you are viewing a single comment's thread
view the rest of the comments
[–] nettie@lemmy.world 2 points 2 days ago

This looks super helpful, thanks so much! I'll have a play!