Inactive Tutor answered 05/05/21
ls
who | grep -i aa10
Prachi K.
asked 05/05/21Write a shell script which will automatically get executed on logging in. This shell
script should display the present working directory and report whether your friend
whose logname is aa10 has currently logged in or not. If he has logged in, then the
shell script should send a message to his terminal suggesting a dinner tonight. If you
do not have a write permission to his terminal of if he has not logged in, then such a
message should be mailed to him with a request to send confirmation about your
dinner proposal.
Inactive Tutor answered 05/05/21
ls
who | grep -i aa10
Get a free answer to a quick problem.
Most questions answered within 4 hours.
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.