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, [email protected] <
[email protected]> 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:
>
> > [...@myhost ~]$ make_me_a_sandwich
> > What? Make it yourself
> > [...@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 - [email protected]
> > To subscribe, unsubscribe, or to change your mail settings:
> > http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
> ---------------------------------------------------
> PLUG-discuss mailing list - [email protected]
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>
---------------------------------------------------
PLUG-discuss mailing list - [email protected]
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss

Reply via email to