News for hackers. Stuff that matters.
Re:Modernize your Bash Scripts by adding GUI by 1vuio0pswjnm7 on Sunday September 27, 2020 @11:54PM (#24612809)
"Tired of displaying raw text on Console?"

Nope.

I am a scripter. I will never get tired of raw text, but I sure get tired of GUIs, fast. If the author had pitched this as a way to make the scripter's scripts accessible to others who do not understand scripts, I would have a different response.

Re:Modernize your Bash Scripts by adding GUI by Nightshaxx on Monday September 28, 2020 @02:02AM (#24613423)
I feel like notifications would be the only thing on that list I could see myself using. I know you can make the terminal make a noise, but I sometimes prefer visual alerts.
Re:Modernize your Bash Scripts by adding GUI by MayeulC on Monday September 28, 2020 @03:01AM (#24613734)
Edit: I read the article, this is covered a bit.

On Linux you can use `notify-send "title" "content"`. The only limitation it has is that you can't query the notification id to update or selectively dismiss it later.

Also, many terminals will have a visual alert instead/together with a sound: konsole does this, for instance.

Re:Modernize your Bash Scripts by adding GUI by bayindirh on Monday September 28, 2020 @05:20AM (#24614662)
Many Linux terminals can monitor for activity/silence/bell/process exit. Using these facilities, notifications can be done without modifying the script.
Re:Modernize your Bash Scripts by adding GUI by qz2 on Monday September 28, 2020 @02:24AM (#24613539)
./dosomething && mail user -s job done
Re:Modernize your Bash Scripts by adding GUI by kps on Monday September 28, 2020 @10:33AM (#24617005)
I use a shell script to flash the terminal background using OSC 11 — green or red depending on the last exit status.
Re:Modernize your Bash Scripts by adding GUI by bobsmooth on Monday September 28, 2020 @01:48AM (#24613343)
Last sentence of the first paragraph "But if it is used by a general audience it is obviously good to have some user friendly interactions."
Re:Modernize your Bash Scripts by adding GUI by atoav on Monday September 28, 2020 @03:08AM (#24613786)
Yeah but was is this then a shell script which randomly pops up some windows you need to click away?

When your script was a bash script chances are you targeted proficient users with it. These might get annoyed by popping up stuff. This means ultimately you are probably better off adding a GUI and a --headless flag so both user categories are happy.

As I see it the only thing that is a little useful are the notifications (e.g. if you have some sort of daemon running in background that needs to bring sth to the users attention)

[dead]
[dead]
Re:Modernize your Bash Scripts by adding GUI by 1vuio0pswjnm7 on Monday September 28, 2020 @05:01AM (#24614550)
That "unneeded" comment has received almost as many points as the article itself.
Re:Modernize your Bash Scripts by adding GUI by bobsmooth on Monday September 28, 2020 @06:10AM (#24614996)
And I'm sure they all didn't actually read the article before coming to the comments section, just like you. Adding their uninformed upvote to your uninformed comment. To be clear, "If the author had pitched this..." is the uninformed part. He makes his intentions clear in the first paragraph.
Re:Modernize your Bash Scripts by adding GUI by 1vuio0pswjnm7 on Monday September 28, 2020 @06:35PM (#24621969)
What about people who can't read the article because of a paywall. They like to comment, too. Or the tangents that routinely happen having nothing to do with the article.

I believe the heading is part of the article. It is the first thing the reader will encounter and the author is trying to get us to read more. It requires that the author put some thought into it. Unless I am missing something, the statement about "raw text" reflects how the author actually believes readers might feel.

You're essentially asking me to ignore the author's statement about being "tired of displaying raw text" and try to interpret some ambiguous sentence at the end of paragraph 1. I am not tired of displaying raw text. He assumed wrong. There's no retraction or contradiction of the statement about "raw text" in the article. As far as I can tell, it was not "clickbait". The author actually believes reader are "tired of displaying raw text".

Re:Modernize your Bash Scripts by adding GUI by bobsmooth on Monday September 28, 2020 @07:56PM (#24622602)
I'm just asking you to read the article before commenting. I guess that's too much to ask.
Re:Modernize your Bash Scripts by adding GUI by 1vuio0pswjnm7 on Monday September 28, 2020 @11:32PM (#24623945)
What you are not understanding is that it would have made no difference in this case. That statement about being tired of displaying raw text was intentionallly chosen by the author and it is not something I am going to ignore after I read the article. I am already familiar with the software. The article did not tell me anything I did not already know.
Re:Modernize your Bash Scripts by adding GUI by darkwater on Monday September 28, 2020 @03:21AM (#24613873)
I'm also a scripter and love the CLI but notify-send is really nice to be alerted when locally-executed long-running scripts end (for example, a terraform plan)
Re:Modernize your Bash Scripts by adding GUI by cozzyd on Monday September 28, 2020 @03:33AM (#24613970)
gnome-terminal already seems to do this for me...
Re:Modernize your Bash Scripts by adding GUI by darkwater on Tuesday October 06, 2020 @11:46AM (#24698972)
How? I cannot find any "notify on activity" in my gnome-terminal version (I used to use it with Terminator). But anyway it's not the same, or at least it wasn't in Terminator, since you can just notify for activity in a terminal regardless of the program generating activity in it. And I don't want to turn it off and on every time I stop/start using terraform in that session