using linux program mail
From: Stephanus Fengler (fengler_at_uiuc.edu)
Date: 08/30/05
- Previous message: Dusan Djordjevic: "Update DNS from DHCP problem"
- Next in thread: Paul Howarth: "Re: using linux program mail"
- Reply: Paul Howarth: "Re: using linux program mail"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 30 Aug 2005 13:34:23 +0200 To: fedora-list@redhat.com
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.
thanks,
fengler
-- fedora-list mailing list fedora-list@redhat.com To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
- Previous message: Dusan Djordjevic: "Update DNS from DHCP problem"
- Next in thread: Paul Howarth: "Re: using linux program mail"
- Reply: Paul Howarth: "Re: using linux program mail"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|