Search Results

Search: Posts Made By: stomp
187
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...
247
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 ? ...
900
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...
2,711
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 |...
837
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...
1,898
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...
722
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,153
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...
789
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,125
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,125
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
6,661
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...
2,746
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...
734
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...
2,746
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...
858
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...
5,800
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...
5,800
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...
5,800
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...
Forum: Cybersecurity 09-27-2019
2,484
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,484
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,484
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...
5,800
Posted By stomp
bitcoin-cli -testnet sendmany ""...
bitcoin-cli -testnet sendmany "" "{\"n1yswZYByRv3okGDHs1oDaevq8gsDaYZzC\":"0.079319635", \"2NFafKRugHFdYEib7xVfkT6bvtkUKK8oShZ\":"0.079319635"}" 6 "Payments" "[\"n1yswZYByRv3okGDHs1oDaevq8gsDaYZzC\",...
5,800
Posted By stomp
Hello Psy, I suggest for now to only check...
Hello Psy,

I suggest for now to only check if the JSON you want to generate is ok and only after having this 100% correct then go on to build the complete program call.

Regarding the...
5,800
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...
Showing results 1 to 25 of 402

 

Featured Tech Videos

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