[96789] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Scripting

daemon@ATHENA.MIT.EDU (Linux User)
Thu Oct 29 11:54:20 1998

Date: Thu, 29 Oct 1998 11:30:09 -0500 (EST)
From: Linux User <linuxuser@linuxtest.fellows.denison.edu>
To: RedHat List <redhat-list@redhat.com>
In-Reply-To: <19981027182332.A7520@adbvdesign.analog.com>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com


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.


home help back first fref pref prev next nref lref last post