I am creating an indicator applet for Ubuntu in the form of a Gnome extension. I’m using javascript (which I don’t have very much experience with). The goal is to have an icon in the panel which when clicked simply pops up a small window (connected to the panel like a menu) with a text box that al…
Tag: linux
Storing only part of output into shell variable
hi i am using a bash script. here i execute this code. This will return a output as Now i know how to store this entire output into a single variable and print it But i am not able to figure out how to store partial information into variable. Like if i want to store only TEST1 into the variable,
Spring Boot Index jsp works on localhost, but not found in linux server
I create Spring Boot application. It works successfully in my localhost. But when I deploy and run jar file in linux centos server index page can not found (I get : There was an unexpected error (type=Not Found, status=404). /WEB-INF/jsp/index.jsp) This is my code structure and application.properties : code s…
How to backup laptop SSD with UEFI [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack …
how to get rid of the “unknown” section in the perf
what I did is: then I get a tiny part of “unknown”, like looks this is due to libc ‘malloc’ call. then I write a program on the same machine to test it. then I did the same thing as above, there is no “unknown” section. how to explain/fix this? Answer The [unknown] block in…
why does grep works when used as a variable and does not when used as a function in linux shell script?
I am trying to use grep as a variable and a function in a bash shell script. I get the desired output when grep is used as an variable. I do not get the desired output when grep is used as an function. The script used for grep as a variable is as below: the out put when we run
Bash – Remove XML nodes if the attribute value of a child node does not equal a specific value?
I have RSS feed, like this: I want remove all nodes (/feed/entry) where link href != http://myhomesite.com. How do I remove XML node where value start at specified symbols using Bash? Answer Bash features by themselves are not very well suited parsing XML. This renowned Bash FAQ states the following: Do not a…
AWK with commands [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations. Closed 3 years ago. Improve this ques…
Setting signal for SIGWINCH causes output on terminal?
When I set up a signal handler for SIGWINCH that does nothing, resizing the terminal window causes a reverse ? character to show up, get several of them as I resize the window around. If I don’t setup a signal handler, that doesn’t happen. Why is it doing that and How do I stop that? More informat…
how to avoid enviroment variable from resetting in WSL terminal after restart?
environment variable set (in zsh shell) in WSL disappears after restarting the terminal. I have used to set environment variable. how should I avoid env variable from resetting after restart. Answer I added environment variable in .zshrc file after reading comment of @Biswapriyo. like this- export variable_na…