BASH script quote problem

Andy Bradford amb-plug at bradfords.org
Thu Nov 2 15:07:23 MST 2006


Thus said Scott Morris on Thu, 02 Nov 2006 14:59:49 MST:

> Any thoughts on how this could be accomplished?

How about: 

#!/bin/sh
RECIP=scottmmorris at hotpop.com
ls | mail -s "Running on `hostname` - sent" "$RECIP"

Andy
--
[-----------[system uptime]--------------------------------------------]
  3:06pm  up 4 days,  4:51,  1 user,  load average: 1.00, 1.00, 1.00



More information about the PLUG mailing list