Find Jobs
Hire Freelancers

Linux shell script

$15-20 USD

In Progress
Posted over 12 years ago

$15-20 USD

Paid on delivery
All scripts are to use the Bourne Shell. (ksh or bash is also acceptable) Any scripts written using the c-shell (csh) will not be accepted. Projects usings temporary files will not be graded. 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). You also need to sign the script with the real name of the person who is running the script. This can be derived from the $USER environment variable and looking up the value in the password file. An error message should be printed if the user does not exist in the passwd file. PLEASE ONLY SEND THIS MESSAGE TO USERS WHICH YOU KNOW PERSONALLY. The real name of the user of the script should only be computed once. 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 "INSERT THE USERS REAL NAME FROM THE PASSWORD FILE", Please ignore this mail. The current time and date is . Have a nice day. "insert the real name of the person running the script - do not hard code the value"
Project ID: 3662790

About the project

2 proposals
Remote project
Active 12 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
See private message.
$12 USD in 3 days
5.0 (71 reviews)
5.9
5.9
2 freelancers are bidding on average $14 USD for this job
User Avatar
See private message.
$15 USD in 3 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
United States
5.0
6
Member since May 12, 2006

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.