Search Results

Search: Posts Made By: aristosv
1,090
Posted By aristosv
Actually instead of exporting the banned IP...
Actually instead of exporting the banned IP addresses every 60 seconds and writing them to a file, I ended up reading fail2ban log files to find which IP's were banned.

cat /var/log/fail2ban.log*...
1,090
Posted By aristosv
Write only changes to file - avoid duplicates
I want to create a file, to save a list of fail2ban blocked ip addresses. So I thought I'd create a loop that will check with fail2ban every minute, and write the ip addresses to a file.

while...
1,333
Posted By aristosv
thanks for both suggestions. works great!
thanks for both suggestions. works great!
1,333
Posted By aristosv
thanks for your reply, I'll give it a try.
thanks for your reply, I'll give it a try.
1,333
Posted By aristosv
Improving repetitive tasks in function
stop_service ()
{
sudo systemctl is-active --quiet video.service && sudo systemctl stop video.service && sudo rm /etc/systemd/system/video.service && echo stop video
sudo systemctl is-active...
3,142
Posted By aristosv
But the first one calls the second one. Its not...
But the first one calls the second one. Its not as simple as copy/paste the one into the other.
3,142
Posted By aristosv
Merge two bash scripts
I am currently running the following two bash scripts, in order to start x, matchbox and midori on the raspberry pi hdmi, using a remote ssh session.
start-browser
#!/bin/bash
# import variables...
Showing results 1 to 7 of 7

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