|
|
Subject:
BASH assignment ___ATTN DOGBITE
Category: Computers > Programming Asked by: dubbs123-ga List Price: $15.00 |
Posted:
29 Apr 2003 15:01 PDT
Expires: 29 May 2003 15:01 PDT Question ID: 197181 |
Write a shell script to send a customized mail message to the users listed on the command line by login (user) name, only if they are currently logged on. If no users are listed on the command line an error message should be printed. In the mail message, you should use the full (real) name from the passwd file (/etc/passwd). An error message should be printed if the user does not exist in the passwd file. USE MAILX program A "Here-Document (In-Line Redirection)" should be used for the mail message. No temporary files should be used. The message should be as follows: Hello , Please ignore this mail. | |
|
|
Subject:
Re: BASH assignment ___ATTN DOGBITE
Answered By: dogbite-ga on 29 Apr 2003 15:51 PDT |
Hi dubbs123-ga, Actually, I found time write the script before I went out. I have put it here: http://nms.lcs.mit.edu/~gch/google/sendusermail There are two caviats: 1) I'm not positive of the format of your system's etc/passwd file. Hopefully the lines in your file are delimited by colons. 2) I don't have mailx installed on my system. Still, I've used it before, and I think it will work. Please let me know how that works for you. dogbite-ga | |
| |
|
|
There are no comments at this time. |
If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you. |
Search Google Answers for |
Google Home - Answers FAQ - Terms of Service - Privacy Policy |