[96804] in RedHat Linux List
RE: Scripting
daemon@ATHENA.MIT.EDU (Heltzel, Dennis)
Thu Oct 29 12:40:15 1998
From: "Heltzel, Dennis" <DHeltzel@IKON.com>
To: "'redhat-list@redhat.com'" <redhat-list@redhat.com>
Date: Thu, 29 Oct 1998 12:04:36 -0500
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
Try:
mail -s "`grep alive /usr/local/bin/fpinger/rundata`"
whoever@whereever.xyz
or:
pingalive=`grep alive /usr/local/bin/fpinger/rundata`
mail -s "$pingalive" whoever@whereever.xyz
> -----Original Message-----
> From: Linux User [SMTP:linuxuser@linuxtest.fellows.denison.edu]
> Sent: Thursday, October 29, 1998 11:30 AM
> To: RedHat List
> Subject: Scripting
>
>
> How do I store a output to a variable,
>
> what I want to do is to get the output of
>
> $ grep alive /usr/local/bin/fpinger/rundata
>
> to a variable ($pingalive) so i can do
>
> $ mail -s $pingalive whoever@whereever.xyz
> (basically get the result of fping in the subject line)
>
> thanks,
>
> Fahd Sultan
> Software Techie & Linux System Adminstrator
> Denison U.
> linuxuser@linuxtest.fellows.denison.edu
> sultan_f@denison.edu
>
>
> --
> PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
> http://www.redhat.com http://archive.redhat.com
> To unsubscribe: mail redhat-list-request@redhat.com with
> "unsubscribe" as the Subject.
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com http://archive.redhat.com
To unsubscribe: mail redhat-list-request@redhat.com with
"unsubscribe" as the Subject.