this post was submitted on 28 Jan 2024
15 points (94.1% liked)
Linux
48328 readers
636 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
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
grep sda /etc/mtab 2>&1 tee /tmp/tab.txt | yad --title="output" \ --width=154 --text="$(cat /tmp/tab.txt)"
@linuxPIPEpower
I'm not sure if that is working properly on my system. It opens a dialogue box that just has content
""
with cancel/ok buttons .I tried populating a file tab.txt with a few lines because I am not sure if my results from the first part are what's expected, which is 1 line. No matter what the content the best I can do is get the first line to show in the dialogue but not in an interactive way.
Tbh having a bit of a hard time following what's going on with
2>&1 tee
. But I am not sure how it could be the right thing as I don't see more thaninput
?What I want is to open a dialogue like this:
where the user's input gets directed to some sort of structure. Like an argument As though you had a terminal script with the syntax
scriptname --filename="file.txt" --content="red green blue"
.