Prachi K.

asked • 05/05/21

Write a shell script

Write 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.

1 Expert Answer


Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.


Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.