[98597] in RedHat Linux List
Re: A script problem
daemon@ATHENA.MIT.EDU (David E. Fox)
Mon Nov 9 19:49:11 1998
From: "David E. Fox" <dfox@belvdere.vip.best.com>
To: redhat-list@redhat.com
Date: Mon, 9 Nov 1998 16:34:29 -0800
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
On Mon, 09 Nov 1998, Zoki wrote:
>*** I couldn't sit still so I went on messing around with the script. At
>this point it works, but I still would like to get feedback if it's done
>according to the rules. This is the solution I found:
>
>********* The script *********************
>
>#!/bin/sh
>
>'/usr/bin/id -un'=USER
Not quite. Assign to USER the results of /usr/bin/ld -un thus:
USER=`/usr/bin/ld -un`
Remember to use backquotes here - the shell will run the command in the
backquotes and then substitute any output, stuffing it into the variable
USER.
>
>Zoki.
--
------------------------------------------------------------------------
David E. Fox Tax Thanks for letting me
dfox@belvdere.vip.best.com the change magnetic patterns
root@belvedere.sbay.org churches on your hard disk.
-----------------------------------------------------------------------
--
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.