From ccb9ddd8f8fd683125419fecd8d20898742be930 Mon Sep 17 00:00:00 2001 From: Henocks Date: Wed, 2 Nov 2016 09:08:44 +0900 Subject: [PATCH] Update daily_checks.py --- daily_checks.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/daily_checks.py b/daily_checks.py index 1730154bacd..4dcb1670af2 100644 --- a/daily_checks.py +++ b/daily_checks.py @@ -26,7 +26,7 @@ def clear_screen(): # Function to clear the screen os.system('CLS') # Clear the Screen def print_docs(): # Function to print the daily checks automatically - print "Printing Daily Check Sheets:" + print ("Printing Daily Check Sheets:") # The command below passes the command line string to open word, open the document, print it then close word down subprocess.Popen(["C:\\Program Files (x86)\Microsoft Office\Office14\winword.exe", "P:\\\\Documentation\\Daily Docs\\Back office Daily Checks.doc", "/mFilePrintDefault", "/mFileExit"]).communicate() @@ -35,7 +35,7 @@ def putty_sessions(): # Function to load the putty sessions I need subprocess.Popen(('putty -load '+server)) # Open the PuTTY sessions - 1.1 def rdp_sessions(): - print "Loading RDP Sessions:" + print ("Loading RDP Sessions:") subprocess.Popen("mstsc eclr.rdp") # Open up a terminal session connection and load the euroclear session def euroclear_docs(): @@ -53,7 +53,8 @@ def main(): clear_screen() # Call the clear screen function # The command below prints a little welcome message, as well as the script name, the date and time and where it was run from. - print "Good Morning " + os.getenv('USERNAME') + ", " + filename, "ran at", strftime("%Y-%m-%d %H:%M:%S"), "on",platform.node(), "run from",os.getcwd() + print ("Good Morning " + os.getenv('USERNAME') + ", "+ + filename, "ran at", strftime("%Y-%m-%d %H:%M:%S"), "on",platform.node(), "run from",os.getcwd()) print_docs() # Call the print_docs function putty_sessions() # Call the putty_session function