All Questions
0
votes
0answers
2 views
SNMP query the network range for multiple OIDs
I looked for some tool for Linux that can SNMP query an IP range for multiple OIDs and return results (if found), but didn't find anything.
I have SNMP installed on Ubuntu, is it possible with ...
0
votes
0answers
6 views
How to integrate multiple Python/Perl scripts to be executed in one bash script?
I have the following Perl scripts (though this applies to Python and other scripting languages): script1.pl, script2.pl, script3.pl
The way these scripts where written, users execute them with input ...
0
votes
2answers
11 views
why will Bash not add my variables together?
I am writing a shell script to calculate the averages of numbers from a file but for some reason bash is not adding my numbers together.
I have tried multple ways of formatting the sum='expr $sum + $...
0
votes
1answer
2 views
dnf: How to tell what's causing broken dependencies?
Sometimes when doing a dnf upgrade I'll be told that it's skipping packages because of broken dependencies. It will tell me which packages are being skipped, but not why they're being skipped. How ...
1
vote
2answers
14 views
Detecting on a remote host that files have been rsynced to it
I have a tool that I use during development for syncing the code I am writing on my laptop with my test environment on a remote host. This allows me to quickly test changes without having to git-...
0
votes
0answers
4 views
Systemd service creation of Prometheus and Node Exporter
I am trying to create services for both Prometheus and Node Exporter.
Both .service files have nearly identical content.
#!/bin/sh -
# /etc/systemd/system/node_exporter.service
[Unit]
...
0
votes
0answers
6 views
logfile: if new line with specific term then action [duplicate]
I have a file that is logging new incoming mail for users of a mail system.
If there is new mail, a line like this is added to the file:
Mon Jan 30 23:08:21 2017: [16756] Delivered message to '...
0
votes
1answer
12 views
Running a remote process on local
Is there an existing tool that does something like:
1.Download an existing program from a remote server to local machine when the remote machine signals.
2. Execute it automatically.
Otherwise is ...
1
vote
2answers
34 views
Inverted tail command? [duplicate]
Basically, piping a command or block of text to something like: tail -n 3 (for example), will print only the last three lines to stdout. Is there an equivalent, or similar method for doing the exact ...
2
votes
2answers
19 views
Coloring script output using cat
Like the title says - is coloring an output possible using cat or similar command?
Let say I have some php or bash script or other. I don't need to edit the file, just to view the source.
So cat ...
0
votes
1answer
8 views
Write access time slow on RAID1
I'm running MongoDB on my personal computer. I noticed that performance is much slower when the data are on my 2-recent-spinning-hard-drive-software-RAID1 than when they are on an older spinning hard ...
0
votes
0answers
5 views
Nginx 403 error with proper CHMOD and CHOWN on static files
Good day.
So I have a static website made with Bootstrap. Nothing complex, just a few .html files and that's it. I put everything in a vps, give permission 755 on directories and 644 on files, and ...
2
votes
0answers
13 views
chroot of entire filesystem, except for one file
I want to create a chroot for a command that I'll run, and I want the chroot to be completely identical to the "real" filesystem, except for one altered file.
(Let's just assume that this is indeed ...
1
vote
0answers
7 views
Unable to use up arrow key in screen copy mode or windowlist
I am ssh'ing from a terminal window on my Mac to a NetBSD box (our bastion host) and then running screen on the NetBSD box.
In copy mode or in the windowlist (which uses the copymode key bindings), I ...
0
votes
0answers
7 views
SIGCHLD not raised when run as a service on RPi Debian
I am running a web server on Raspian (Linux). I use asio to capture SIGCHLD. When I run the application from a user session, the parent process gets a signal when the child exits. When the application ...