Below are few lines on zip log file python script.
Getting output file name as different shown below,
Getting output file name as different shown below,
zip_file_name = zipfile.ZipFile(server1 + '/' + log_file_name + ".zip", "w") zip_file_name.write(server1, compress_type = zipfile.ZIP_DEFLATED) print zip_file_nameoutput
Output:<zipfile.ZipFile object at 0x7f83fd13bd90>
why its shows zip file name as mentioned above ? However am seeing log file got zipped !