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
# Description : Creates an output file by pulling all the servers for the given site from SQLITE database, then goes through the list pinging the servers to see if they are up on the network
10
+
11
+
importsys# Load the Library Module
12
+
importsqlite3# Load the Library Module
13
+
importos# Load the Library Module
14
+
importsubprocess# Load the Library Module
15
+
fromtimeimportstrftime# Load just the strftime Module from Time
16
+
17
+
18
+
dropbox=os.getenv("dropbox") # Set the variable, by getting the value of the variable from the OS
19
+
config=os.getenv("my_config") # Set the variable, by getting the value of the variable from the OS
20
+
dbfile=("Databases/jarvis.db") # Set the variable to the database
21
+
master_db=os.path.join(dropbox, dbfile) # Create the variable by linking the path and the file
22
+
listfile=("startup_list.txt") # File that will hold the servers
23
+
serverfile=os.path.join(config,listfile) # Create the variable by linking the path and the file
0 commit comments