Modify the waitfor program to also print the tty number that the user logs on to. That is, the output should look like:
sandy logged onto tty13
if sandy logs on to tty13.
The only change needed to the script is at the very end, the addition of the assignment to the variable device and the output of that value in the echo statement:
if [ "$mailopt" = FALSE] ; then
device=$( who | grep "^$user " | cut -c10-16)
echo "$user has logged on to $device"
else
recipient=$(who am i | cut -cl-8)
echo "$user has logged on" | mail $recipient
fi
You might also like to view...
________ systems are characterized by a minimal amount of code, specialized power management resources and user-friendly interfaces.
a) Real-time b) Mission-critical c) Embedded d) Virtual
GPO enforcement is configured on a GPO, not on an Active Directory container.
Answer the following statement true (T) or false (F)
To display the Details pane in the Select Image Source dialog box, tap or click the Organize button, tap or click Layout, and then tap or click Details pane.
Answer the following statement true (T) or false (F)
Create a strategy for testing MobileApp compatibility.
What will be an ideal response?