Thanks for responding guys,I'm going to respond to both here. Maybe I need to
explain myself? I'm not trying to pass root password to a script (ie. expect),
I simply want the script to *ask* for root so I didn't have to tell the end
user to type 'su'. I have a chk_root function (which I posted) that does this
locally, but I guess the pipe bash option is ruining things for me. This could
add extra work for as many as hundreds of users, so I was trying to simply boil
things down to one command. Perhaps it's not possible?----- Original Message
-----From: [EMAIL PROTECTED]: Monday, December 10, 2007 10:14 pmSubject: Re:
[mhvlug] Bash - "standard in must be a tty" errorTo: [email protected]> On Dec
10, 2007 6:04 PM, Michael Quick > wrote:> > [EMAIL PROTECTED] Desktop]$ *curl
> http://somehost.com/reinstall_package.sh |> > bash*> > Uhm. You deserve to be
rooted. Don't do this.> > I know how to do what you're trying to do, but I
don't think I'm going> to tell you. Instead, why don't you just save
reinstall_package.sh> locally and run it when you want to, perhaps adding
parameters that> will do the dynamic thing you want to do.> > -jesse>
_______________________________________________> Mid-Hudson Valley Linux Users
Group > http://mhvlug.org >
http://mhvlug.org/cgi-bin/mailman/listinfo/mhvlug > >
Upcoming Meetings (6pm - 8pm) MHVLS > Auditorium
> Dec 5 - Open Source Show and Tell> Jan 2 -
TBD> Feb 6 - DBUS> Mar 5 - Setting up a platform-independent home/small
office > network using Linux> - Michael
"Mitch"----------------------------"And there is the vegetarian Hot Pocket...
for those of us who don't eat meat but still want diarrhea." -Jim Gaffigan
_______________________________________________
Mid-Hudson Valley Linux Users Group http://mhvlug.org
http://mhvlug.org/cgi-bin/mailman/listinfo/mhvlug
Upcoming Meetings (6pm - 8pm) MHVLS Auditorium
Dec 5 - Open Source Show and Tell
Jan 2 - TBD
Feb 6 - DBUS
Mar 5 - Setting up a platform-independent home/small office network using
Linux