Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 40acce8

Browse files
committedApr 23, 2023
chore: add log for output txt file
1 parent d645812 commit 40acce8

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed
 

‎cron_job/python2port.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,8 @@ def read_cmd_args():
206206
"ENTER THE FILE NAME WITHOUT THE EXTENSION (DEFAULT FORMAT CSV): ")
207207
print(filename)
208208
readFromCSV(filename)
209+
210+
print("TXT FILE NAME: "+"Results_"+tailingFilename+".txt")
209211
with io.open(os.path.join(dir_path, folder_name, "Results_"+tailingFilename+".txt"), 'w', newline='') as file:
210212
for ips in data:
211213
for index, ips_get in enumerate(ips):

‎python2port.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,10 +196,12 @@ def extractToCSV(listData):
196196
"ENTER THE FILE NAME WITHOUT THE EXTENSION (DEFAULT FORMAT CSV): ")
197197
print(filename)
198198

199-
pingcount = int(args.packet_counts)
200-
telnetretry = int(args.telnet_retries)
199+
pingcount = int(pingcount)
200+
telnetretry = int(telnetretry)
201201

202202
readFromCSV(filename)
203+
204+
print("TXT FILE NAME: "+"Results_"+tailingFilename+".txt")
203205
with io.open(os.path.join(folder_name, "Results_" + tailingFilename + ".txt"), 'w', newline='') as file:
204206
for ips in data:
205207
for index, ips_get in enumerate(ips):

0 commit comments

Comments
 (0)
Please sign in to comment.