Advertisement
Guest User

Process Checking Psuedocode

a guest
Jun 21st, 2017
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <#
  2.  
  3. .SYNOPSIS
  4.         Runs a loop in the background that will periodically create a file that shows processing power and performance.
  5.  
  6. .DESCRIPTION
  7. This is a template script and this is where you would type a more detailed description of the command.
  8.  
  9. .EXAMPLE
  10. This is a template script and this is where you would type your first example of how to use this command.
  11.  
  12. .EXAMPLE
  13. This is a template script and this is where you would type your second example of how to use this command.
  14.  
  15. #>
  16.  
  17. #Written by Dustin Brooks on June 20th, 2017
  18.  
  19. #Initialization
  20. #This section contains variable declarations and assignments
  21.  
  22. $time #I need the time variable so my script will know when to execute the code to keep the processing record
  23. #At present I can only think of $time as a required variable. Once this variable is met in the loop, the rest of script is using cmdlets to create the file I want into the specified directory
  24.  
  25.  
  26.  
  27. #Functions
  28. #This section contains function definitions
  29.  
  30. #OUTPUT FOR THE USER
  31. #The output should be a file created in a specified directory
  32.  
  33. #INPUT BY THE USER
  34. #The user should only need to run this looping script and the rest should be taken care of. Could potentially make a command that outputs the last, or last few, file contents created by the loop
  35.  
  36. #Main Body/Loop
  37. #This section contains the code that implements the main function of the script
  38. #The main loop should be checking the time of the machine and executing the script when that $time is true.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement