You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
defputty_sessions(): # Function to load the putty sessions I need
33
-
forserverinopen(conffilename): # Open the file server_list.txt, loop through reading each line - 1.1 -Changed - 1.3 Changed name to use variable conffilename
34
-
subprocess.Popen(('putty -load '+server)) # Open the PuTTY sessions - 1.1
33
+
defputty_sessions(): # Function to load the putty sessions I need
34
+
forserverinopen(conffilename): # Open the file server_list.txt, loop through reading each line - 1.1 -Changed - 1.3 Changed name to use variable conffilename
35
+
subprocess.Popen(('putty -load '+server)) # Open the PuTTY sessions - 1.1
35
36
36
37
defrdp_sessions():
37
38
print"Loading RDP Sessions:"
38
-
subprocess.Popen("mstsc eclr.rdp") # Open up a terminal session connection and load the euroclear session
39
+
subprocess.Popen("mstsc eclr.rdp") # Open up a terminal session connection and load the euroclear session
39
40
40
41
defeuroclear_docs():
41
42
# The command below opens IE and loads the Euroclear password document
@@ -44,15 +45,20 @@ def euroclear_docs():
44
45
# End of the functions
45
46
46
47
# Start of the Main Program
48
+
defmain():
49
+
filename=sys.argv[0] # Create the variable filename
50
+
confdir=os.getenv("my_config") # Set the variable confdir from the OS environment variable - 1.3
51
+
conffile= ('daily_checks_servers.conf') # Set the variable conffile - 1.3
52
+
conffilename=os.path.join(confdir, conffile) # Set the variable conffilename by joining confdir and conffile together - 1.3
53
+
clear_screen() # Call the clear screen function
54
+
55
+
# The command below prints a little welcome message, as well as the script name, the date and time and where it was run from.
0 commit comments