I have a problem with my python script that is ran thru cron job. The program works as described below
1.) I have an nmap bash script that runs on an hour it will be output to a file. that will consist only the open ports and the involved IP's
2.) The python script will now read the file being generated by bash. and will undergo string manipulation and comparison of the safe ports.
3.) It will now send the processed results. to our emails using SMTPLib.
This will work fine if I ran it manually but if this will be ran thru cron it will just give me a blank output.