subject

Write a script that checks each minute and reports on who logs in and who logs out. you can follow the steps below (not the only way): 1. using the commands who and cut, extract the list of usernames currently logged in the system 2. to check after a minute, the sleep command can be used: sleep 60 3. get the new list of users logged in after a minute 4. for each user in the first list, check if he is in the second list using if and grep. you can dump the output of grep to /dev/null when using it in the as a test for the if statement if the user is not in the second list, print that the user has logged out a. b. 5. for each user in the second list, a. if he is in the first list, print that the user has logged in 6. 7. rename the second list as the first list repeat the process from step 2)

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 15:00, gmc2771
Hyperactive media sales has 10 windows 7 laptop computers used by sales-people in the organization. each laptop computer has several customized applications that are used during the sales process as well as customer relationship management software. all of the applications on the laptops are difficult to configure and have large data files. if all of the laptops have current hardware, what is the easiest way to install windows 10 on them?
Answers: 1
image
Computers and Technology, 22.06.2019 16:30, sayedaly2096
What type of file does a cookie place on web site visitors' computers so that web site managers can customize their sites to their visitors' preferences?
Answers: 1
image
Computers and Technology, 22.06.2019 19:30, tfaulk2884
Singing in the rain: this first part of the film shows the early history of motion picture. how accurate do you think the portrayal of the early motion picture industry is? why? is historical accuracy important in films and theater productions? explain.
Answers: 1
image
Computers and Technology, 22.06.2019 22:30, juliangarcia0002
Which of the following factors would your hypothetical supervisor look at when deciding whether to test a biological material sample for dna? the amount of other evidence you have implicating a suspect in a crime the annual budget for the crime lab both of the above none of the above; you would almost always order a test
Answers: 3
You know the right answer?
Write a script that checks each minute and reports on who logs in and who logs out. you can follow t...

Questions in other subjects:

Konu
History, 29.01.2021 06:40