Skip to content

Commit 01442f0

Browse files
committed
Add CRON job support
1 parent a007e06 commit 01442f0

10 files changed

+739
-179
lines changed

Bpaul.csv

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
fc00:0011:0018:d7eb:0000:0000:0000:0001
2+
fc00:0011:0014:d2c7:0000:0000:0000:0001
3+
fc00:0011:0009:746a:0000:0000:0000:0001
4+
fc00:0011:0014:b056:0000:0000:0000:0001
5+
fc00:0011:0009:7bd1:0000:0000:0000:0001
6+
fc00:0011:0009:7bac:0000:0000:0000:0001
7+
fc00:0011:0014:bf01:0000:0000:0000:0001
8+
fc00:0011:0018:d7f4:0000:0000:0000:0001
9+
fc00:0011:0018:d7e4:0000:0000:0000:0001
10+
fc00:0011:0014:b011:0000:0000:0000:0001
11+
fc00:0011:0018:d7e0:0000:0000:0000:0001
12+
fc00:0011:0018:d7e9:0000:0000:0000:0001
13+
fc00:0011:0015:6287:0000:0000:0000:0001
14+
fc00:0011:0018:b4ff:0000:0000:0000:0001
15+
fc00:0011:0016:c6c7:0000:0000:0000:0001
16+
fc00:0011:0014:b502:0000:0000:0000:0001
17+
fc00:0011:0014:d247:0000:0000:0000:0001
18+
fc00:0011:0016:b46b:0000:0000:0000:0001
19+
fc00:0011:0018:d800:0000:0000:0000:0001
20+
fc00:0011:0018:d7e5:0000:0000:0000:0001
21+
fc00:0011:0018:d7fb:0000:0000:0000:0001

cron_job/CRON JOB TEMPLATE.txt

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
15 18 * * * /usr/bin/python /home/[email protected]/OPT/pingTester/Test/Temp/cron_job/python2port.py ipaddr_jobs
2+
35 19 * * * /usr/bin/python /home/[email protected]/OPT/pingTester/Test/Temp/cron_job/python2port.py HostIPs1
3+
20 20 * * * /usr/bin/python /home/[email protected]/OPT/pingTester/Test/Temp/cron_job/python2port.py HostIPs2
4+
20 21 * * * /usr/bin/python /home/[email protected]/OPT/pingTester/Test/Temp/cron_job/python2port.py HostIPs3

cron_job/header.py

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# import call method from subprocess module
2+
from subprocess import call
3+
import os
4+
5+
6+
def clear():
7+
# check and make call for specific operating system
8+
_ = call('clear' if os.name == 'posix' else 'cls')
9+
10+
11+
def printHeader():
12+
print """
13+
Welcome to,
14+
15+
/$$$$$$$ /$$ /$$ /$$$$$$$ /$$
16+
| $$__ $$ | $$ | $$ | $$__ $$|__/
17+
| $$ \ $$/$$ /$$ /$$$$$$ | $$$$$$$ /$$$$$$ /$$$$$$$ | $$ \ $$ /$$ /$$$$$$$ /$$$$$$
18+
| $$$$$$$/ $$ | $$|_ $$_/ | $$__ $$ /$$__ $$| $$__ $$ | $$$$$$$/| $$| $$__ $$ /$$__ $$
19+
| $$____/| $$ | $$ | $$ | $$ \ $$| $$ \ $$| $$ \ $$ | $$____/ | $$| $$ \ $$| $$ \ $$
20+
| $$ | $$ | $$ | $$ /$$| $$ | $$| $$ | $$| $$ | $$ | $$ | $$| $$ | $$| $$ | $$
21+
| $$ | $$$$$$$ | $$$$/| $$ | $$| $$$$$$/| $$ | $$ | $$ | $$| $$ | $$| $$$$$$$
22+
|__/ \____ $$ \___/ |__/ |__/ \______/ |__/ |__/ |__/ |__/|__/ |__/ \____ $$
23+
/$$ | $$ /$$ \ $$
24+
| $$$$$$/ | $$$$$$/
25+
\______/ \______/
26+
27+
by © Ankur Paul (https://github.com/nooobcoder/PythonPingTelnetStatus)
28+
29+
[PLEASE SPONSOR THIS PROJECT HERE]
30+
31+
You are not allowed to redistribute, duplicate, modify this source code without the author's permission. Will be seriously dealt with if not acknowledged.
32+
33+
Thank You!
34+
"""
35+
36+
37+
clear()
38+
printHeader()

0 commit comments

Comments
 (0)