Hello,
i want a small python script.
Need to writed in Python 3.
In the script need to select the following variants (i write and some examples):
command1="/usr/bin/ip a"
value="[login to view URL]"
repeats="3"
include="1"
when i run the script, they run the command1 and then:
in the results if the $value is included $repeats times then do nothing. Otherwise they can send the results of the command with email.
if the include variable is 0 then they do the opposite, send a email only if the variant is included 3 times in the results.
I have allready the part of the script to send the email, so i want just the part to check the results.
Hi, I am good at python. And I have made several scripts, and know how to do stuffs. However your description about the job was quite messy. But we can sort it out, once we get into contact.
The job is fairly simple. And can be achieved in two days.
I've written a demo version of this script that should do exactly what you're looking for.
I've been writing Python for several years, and a small script like this is right up my alley. I'm sure you'll be satisfied.