Hi all,

As allways there is more than one way to do it.

Tony Green wrote:
> $LOGNAME and $USER should contain the users name 
> Don't bother with the exec - not needed and you can 

yep that worked OK
        cat files | mail $USER

 
Matthew Dalton (and John Clarke) suggested:
> Does 'whoami' do the job?

yep works too:
        cat files | mail `whoami`

Thanks heaps :-)
Mike
-- 
-------------------------------------------------------
Michael Lake
University of Technology, Sydney
Ph: 9514 1724 Fx: 9514 1628 email: [EMAIL PROTECTED]
-------------------------------------------------------

-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to