Skip to content

Commit 8ae9934

Browse files
Merge pull request geekcomputers#88 from Henocks/patch-3
Update daily_checks.py
2 parents 7c92956 + ccb9ddd commit 8ae9934

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

daily_checks.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def clear_screen(): # Function to clear the screen
2626
os.system('CLS') # Clear the Screen
2727

2828
def print_docs(): # Function to print the daily checks automatically
29-
print "Printing Daily Check Sheets:"
29+
print ("Printing Daily Check Sheets:")
3030
# The command below passes the command line string to open word, open the document, print it then close word down
3131
subprocess.Popen(["C:\\Program Files (x86)\Microsoft Office\Office14\winword.exe", "P:\\\\Documentation\\Daily Docs\\Back office Daily Checks.doc", "/mFilePrintDefault", "/mFileExit"]).communicate()
3232

@@ -35,7 +35,7 @@ def putty_sessions(): # Function to load the putty sessions I need
3535
subprocess.Popen(('putty -load '+server)) # Open the PuTTY sessions - 1.1
3636

3737
def rdp_sessions():
38-
print "Loading RDP Sessions:"
38+
print ("Loading RDP Sessions:")
3939
subprocess.Popen("mstsc eclr.rdp") # Open up a terminal session connection and load the euroclear session
4040

4141
def euroclear_docs():
@@ -53,7 +53,8 @@ def main():
5353
clear_screen() # Call the clear screen function
5454

5555
# The command below prints a little welcome message, as well as the script name, the date and time and where it was run from.
56-
print "Good Morning " + os.getenv('USERNAME') + ", " + filename, "ran at", strftime("%Y-%m-%d %H:%M:%S"), "on",platform.node(), "run from",os.getcwd()
56+
print ("Good Morning " + os.getenv('USERNAME') + ", "+
57+
filename, "ran at", strftime("%Y-%m-%d %H:%M:%S"), "on",platform.node(), "run from",os.getcwd())
5758

5859
print_docs() # Call the print_docs function
5960
putty_sessions() # Call the putty_session function

0 commit comments

Comments
 (0)