Firewing1
22nd December 2004, 11:43 PM
Hi,
I'm not sure how to do this, but I'd really appreciate it if someone helped me out on how to. What I'd like is to script that asks me if I want to su. So, pretty much, I click on my taskbar button, I want it then to open a terminal with this message:
Do you want to log in as root? [yes or no]
Yes, asks for password, no, runs normally...
I know this so far about scripting; You start it with #! /bin/bash, end w/ exit, and I also know the basic stuff, like echo, so on... but not how to ask questions and read responses from the user...
Thanks so much,
Firewing1
I'm not sure how to do this, but I'd really appreciate it if someone helped me out on how to. What I'd like is to script that asks me if I want to su. So, pretty much, I click on my taskbar button, I want it then to open a terminal with this message:
Do you want to log in as root? [yes or no]
Yes, asks for password, no, runs normally...
I know this so far about scripting; You start it with #! /bin/bash, end w/ exit, and I also know the basic stuff, like echo, so on... but not how to ask questions and read responses from the user...
Thanks so much,
Firewing1