Find the answer to your Linux question:
Results 1 to 4 of 4
Hi, how to do this? Write a shell script to look into this file and send a birthday-congratulation e-mail to relevant users at 1:00 a.m. every day. Make your script ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2005
    Posts
    13

    Bash script


    Hi,
    how to do this?

    Write a shell script to look into this file and send a birthday-congratulation e-mail to relevant users at 1:00 a.m. every day. Make your script as short as possible.

  2. #2
    Linux Guru lakerdonald's Avatar
    Join Date
    Jun 2004
    Location
    St. Petersburg, FL
    Posts
    5,035
    You've posted this same question at least 3 other times, and at least two of those threads got binned. Haven't you gotten the point yet?

  3. #3
    Linux Newbie
    Join Date
    Aug 2001
    Location
    USA, Texas
    Posts
    217
    evergreen,

    nobody is here to do your homework. attempt to solve the problem yourself, and then ask specific questions about anything that gives you trouble. you are not going to get anything by asking people to do it for you.
    [ [ SykkN alloc ] initWithThePowerTo: destroyYouAll ];
    /* Don\'t make me use it! */

  4. #4
    Just Joined!
    Join Date
    Aug 2005
    Posts
    13
    Hi,
    sorry..
    I didn't write my solution for that ques. My mistake.
    I am not asking others to do my work.

    I'm having problem with linux cd. Unable to use it. So I would appreciate, if someone can run this solution and let me know if it is correct.?

    #!/bin/sh
    DATE=`date '+%d-%m-%y'`
    USERS=`grep $DATE /etc/bithdates awk -v
    FS=":" '{ print $1 }'
    FOR USER in $USERS
    do
    echo "Happy birthday !" | mail $USER





    [if it is wrong, pls tell me how to fix it to correct format]

    thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •