I would simply:
#!/bin/bash
if [ $SUDO_COMMAND ]; then
echo "okay"
else
echo "WHAT? Make it your self"
fi
James Finstrom
Rhino Equipment Corp.
Twitter:
http://twitter.com/rhinoequipment
On Wed, May 27, 2009 at 11:12 AM,
kitepilot@kitepilot.com <
kitepilot@kitepilot.com> wrote:
> Silly me... :)
>
> Source:
> http://www.kitepilot.com/make_me_a_sandwich.txt
>
> Download:
> http://www.kitepilot.com/make_me_a_sandwich.sh
> ET
>
>
>
> Stephen writes:
>
> > [me@myhost ~]$ make_me_a_sandwich
> > What? Make it yourself
> > [me@myhost ~]$ sudo_make_me_a_sandwich
> > ok
> >
> > --
> > A mouse trap, placed on top of your alarm clock, will prevent you from
> > rolling over and going back to sleep after you hit the snooze button.
> >
> > Stephen
> > ---------------------------------------------------
> > PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
> > To subscribe, unsubscribe, or to change your mail settings:
> > http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>
---------------------------------------------------
PLUG-discuss mailing list -
PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss