Search Results

Search: Posts Made By: stomp
1,146
Posted By stomp
I'm not sure if you understood it right....
I'm not sure if you understood it right. Prometheus is getting the Performance data via http, that's correct, but it does not use the installed http-server which is serving normal http requests. That...
1,146
Posted By stomp
Glad you figured it out already. What's...
Glad you figured it out already.

What's regarding instrumentation, I found it very helpful once I had basic monitoring data available for all my servers. I'm still sticking to the solution, I'm...
1,174
Posted By stomp
Hi, here's a suggestion using pup, a...
Hi,

here's a suggestion using pup, a html-parser written in go:

pup 'div p text{}' < data.html

# Output:

text1


text2


text3
...
633
Posted By stomp
Ok, you really appreciate native tools? Me too...
Ok, you really appreciate native tools? Me too ;-)

Good news. As I wrote before(libxml2 change xpath result separator (https://www.unix.com/303029577-post5.html)): The change for...
633
Posted By stomp
xmllint does not separate the output result with...
xmllint does not separate the output result with newlines, xmlstarlet does
633
Posted By stomp
It's a simple XPATH query with xmlstarlet ...
It's a simple XPATH query with xmlstarlet

xmlstarlet sel -t -v "//SeriesName" data.xml

Chappelle's Show
Dave Chappelle
Challenge of the SuperFriends
Challenge of the GoBots
CHALLENGER...
Forum: Shell Programming and Scripting 4 Weeks Ago
771
Posted By stomp
Ansible could execute any shell command you like....
Ansible could execute any shell command you like. You do not have to use lineinfile.

See: shell – Execute shell commands on targets — Ansible Documentation...
813
Posted By stomp
I'd like to mention --forest option of ps which I...
I'd like to mention --forest option of ps which I use regularly under linux.

It lacks the here mentioned feature to show only the tree concerning a special pid.

ps ax --forest...
2406 ? ...
932
Posted By stomp
Even if it does not directly help in this case,...
Even if it does not directly help in this case, I'd like to mention Linux Audit, because it's really interesting:

One can audit all commands entered by anyone with these 2 rules:


auditctl -a...
3,355
Posted By stomp
Quoting is a pain in the ass if you try to do it...
Quoting is a pain in the ass if you try to do it in combination with ssh commands.

Some hints:


Perform the actual textprocessing locally if possible, like this: ssh remoteserver command |...
882
Posted By stomp
I understood that your scripting ambition has...
I understood that your scripting ambition has nothing or little to do with your security skills.

I wonder if you really have no task, you wish to automate. I had plenty of needs for this at any...
2,507
Posted By stomp
I had the same question some weeks ago. If you...
I had the same question some weeks ago. If you really want to restrict root from accessing certain files, SELinux is probably a working way to go. But the high complexity to configure this and the...
744
Posted By stomp
You may start qpv in background with & suffix: ...
You may start qpv in background with & suffix:

qpv someimage.png &
qpv_pid=$!

# do_something here ...

kill $qpv_pid
Forum: Web Development 11-12-2019
1,583
Posted By stomp
I see no problem in testing dynamic values coming...
I see no problem in testing dynamic values coming from whatever source. As long as you can grab the data all is fine.

And since you have example data, the data is obviously there... . If it helps...
840
Posted By stomp
Your task is pretty basic. You will find a lot of...
Your task is pretty basic. You will find a lot of examples if you...

... search google for "perl read from stdin" ...
... read the documentation for the functions, e. g. perldoc -f split

I do...
Forum: What is on Your Mind? 11-07-2019
2,703
Posted By stomp
Yes. Very frustrating. I'm already thinking...
Yes. Very frustrating.

I'm already thinking about that. My thoughts on that:

What is the motivation of answering without encouraging ?

Possibly positive feedback from the Requester and a...
Forum: What is on Your Mind? 11-06-2019
2,703
Posted By stomp
Discussion culture
I want to start a small thread about discussion culture. From the past experience in different fora, I have little hope that any will come out of it. But I'll try it anyway, hoping to contributing to...
Forum: Programming 11-06-2019
7,859
Posted By stomp
Hi, short notice from my side: For a...
Hi,

short notice from my side:

For a current project I decided to use Perl. The platforms are Linux / Red Hat 5/6/7/+future Versions. The reason I chose it, where:

Available on all target...
3,020
Posted By stomp
I just read that yq is not a standalone script,...
I just read that yq is not a standalone script, but does only a data transition from YAML to JSON and then feeds the data into jq with the user-given jq-expression and thus relies on jq to be...
773
Posted By stomp
If you have logrotation in place you may want to...
If you have logrotation in place you may want to know if a log-switch happened. I did this by checking if the first line of a file is still the same. (Hopefully it's not an empty line ;-) ) ... like...
3,020
Posted By stomp
[TIP] Processing YAML files with yq
After the success of the jq - tool for parsing and manipulating JSON-Data someone wrote a tool called yq, which aims to be the same for YAML, what jq is for JSON. Seems to work fine. I'll definitely...
1,174
Posted By stomp
Since HTML is very similar to XML, you may use an...
Since HTML is very similar to XML, you may use an xml tool to parse your file.

Since your HTML-File is not fully standards compliant, the parser complains about it and the file has either be...
6,591
Posted By stomp
Hello psy, as you saw in the last post from...
Hello psy,

as you saw in the last post from Chubler and me, that we have different views on what is the preferred choice of coding. I hope this causes not too much confusion for you.

Global And...
6,591
Posted By stomp
It's nearly the same code as yours: If $used_net...
It's nearly the same code as yours: If $used_net is "testnet" set btcopts to "-testnet" otherwise set to empty value. A shorthand if-construct.

The return value of a variable assignment is always...
6,591
Posted By stomp
Your code is correct and works here as you...
Your code is correct and works here as you described it should. So I assume the variable $used_net never is set to the correct "testnet" value.

Check the variable value directly before the shown...
Showing results 1 to 25 of 408

 

Featured Tech Videos

All times are GMT -4. The time now is 02:55 AM.
Unix & Linux Forums Content Copyright 1993-2020. All Rights Reserved.
Privacy Policy