Re: using linux program mail

From: Paul Howarth (paul_at_city-fan.org)
Date: 08/30/05

  • Next message: akonstam_at_trinity.edu: "Re: Strange init 3 behavior,"
    Date: Tue, 30 Aug 2005 12:34:46 +0100
    To: For users of Fedora Core releases <fedora-list@redhat.com>
    
    

    Stephanus Fengler wrote:
    > hi group members,
    >
    > I like to use the program mail to send myself emails when certain jobs
    > are finished since I am running a lot of computations on different
    > machines. This is a typical feature of grid engines. Since I got an
    > account on a system without such a engine, I like to write a short
    > script which starts my jobs and sends me an email when it is finished.
    > Here is a rough draft:
    >
    > # /bin/bash
    > JOBNAME=job
    > SHELLPID=$$
    > cd /scratch
    > cd $USER
    > mkdir $JOBNAME$SHELLPID
    > cd $JOBNAME$SHELLPID
    > RUN=$HOME/charmm < /scratch/job$SHELLPID.in > job$SHELLPID.out
    > mail -s "Job at $HOSTNAME with job$SHELLPID done" my@mail.adress.com
    >
    > so how do I terminate the input of mail? which is usually done by ctrl d
    > ... or can someone point me to a source which might do what I want?
    > Searching on google linux mail is not so very successful.

    Just try providing some input to the "mail" command, e.g.:

    tail -20 job$SHELLPID.out |
    mail -s "Job at $HOSTNAME with job$SHELLPID done" my@mail.adress.com

    Paul.

    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: akonstam_at_trinity.edu: "Re: Strange init 3 behavior,"

    Relevant Pages

    • using linux program mail
      ... I like to use the program mail to send myself emails when certain jobs ... machines. ... This is a typical feature of grid engines. ...
      (Fedora)
    • Sending LOTS of Email via PHP / Timeout Question(s)
      ... I'm developing a fairly large site for a company that lists jobs ... site will be sending a LOT of emails. ... Every morning, ALL members of the ... Do you think they would be Apache timeouts, ...
      (alt.php)
    • Re: Automate Save As Function
      ... I need to use this option in order that emails pertaining to specific jobs ... (What if a member of staff is off sick & I ... >> I would like to ensure that my staff save emails in the relevant folders ...
      (microsoft.public.outlook)
    • Re: "U.S. Jobless Claims Tumble to 328,000"
      ... > My Monster and Dice agents used to send me emails with jobs across the US ...
      (microsoft.public.cert.exam.mcse)

    Loading