Search Results

Search: Posts Made By: stomp
1,039
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...
586
Posted By stomp
xmllint does not separate the output result with...
xmllint does not separate the output result with newlines, xmlstarlet does
765
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...
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: Programming 11-06-2019
7,797
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,013
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,126
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,561
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,561
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...
Forum: Cybersecurity 09-27-2019
2,949
Posted By stomp
It maybe fail2ban is configured properly, up and...
It maybe fail2ban is configured properly, up and running. That will definitely explain a rate below average. But f2b can be running without being configured to do blocking at all or not correctly...
Forum: Cybersecurity 09-27-2019
2,949
Posted By stomp
Same from receiving side. I also only just had a...
Same from receiving side. I also only just had a very quick read on your post.

Instead of one car crashing into a wall two cars crashing frontal into each other with the same speed do square...
Forum: Cybersecurity 09-27-2019
2,949
Posted By stomp
@Neo: Thanks for rephrasing and clarifying your...
@Neo: Thanks for rephrasing and clarifying your request!

Here's a script which calculates the FLAPM value:


#!/bin/bash

exit_with_message() { echo "$*" ; exit 1 ;}

type lastb >/dev/null...
6,561
Posted By stomp
A short comment on debugging: To check if a...
A short comment on debugging:

To check if a function does what it should do, the easiest method is to simply put the function in a small extra program, call it with some valid test data and just...
4,356
Posted By stomp
tar (child): compress: Cannot exec: No such file...
tar (child): compress: Cannot exec: No such file or directory

As the slightly irritating message states: the compress utility is not found. You have to install it.

In Ubuntu the corresponding...
6,561
Posted By stomp
My code is tested and works. But don't rely on...
My code is tested and works. But don't rely on that. Think/Learn how to know and test if the code is working correctly.

The error is that the call of your program is somehow wrong or not like the...
6,561
Posted By stomp
Correct Usage of quoting ;-)
Hello Psy,


Please don't full quote forum posts. Please only quote the short passage of text you're relating to. Refrain from full quoting because it adds redundant information and makes the...
6,561
Posted By stomp
@psysc0rpi0n...
@psysc0rpi0n (https://www.unix.com/member_modal.php?u=302183235&modal=1) Great! You did it! Your code is good.

One of my goal in programming is trying to create code which is readable well. So I...
6,561
Posted By stomp
Notes: maybe you can spare the escaping...
Notes:

maybe you can spare the escaping of " if you mix ' (single quotes) and " (double quotes).
simple shell scripting will suffice for what you want to achieve, jq seems not necessary(but...
6,561
Posted By stomp
For simple JSON tasks jq is a versatile tool for...
For simple JSON tasks jq is a versatile tool for querying, manipulating and creating JSON within a Shell script. You'll find a lot of usage examples in the web and of course in the excellent jq...
3,072
Posted By stomp
Your json is different from mine. As the error...
Your json is different from mine. As the error message states numbers and strings cannot be added. You have to convert the number to a string before concatenating both:


... (number_var|tostring)...
3,072
Posted By stomp
A little help for what you've nearly got...
A little help for what you've nearly got yourself:

xmlstarlet sel -t -m //searchresults/data/products -v "concat(';',idproduct)" -n purchaseorders.xmlThis will give you the ordered products, like...
3,072
Posted By stomp
What did I do to find the solution? ...
What did I do to find the solution?


Read some Tutorials about XPath
Reached out for xmlstarlet documentation
Used google a lot on the subject, learned from many examples(stackoverflow...
Forum: Programming 09-10-2019
7,660
Posted By stomp
It is. I'm currently working with cygwin. It's a...
It is. I'm currently working with cygwin. It's a reliable way to get many of the essential tools if you have to use windows. But it's a bit slow. I don't know, if it's fast enough for this program.
3,072
Posted By stomp
Hi SDohmen, some additional bits of...
Hi SDohmen,

some additional bits of Knowledge about XPath will lead you forward towards your solution. Especially try to get information about how to figure out "parent nodes" of your target...
Showing results 1 to 25 of 146

 

Featured Tech Videos

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