Need some interactivity in a shell script...
Posted on 2006-11-30
Hello, I want to run these commands in a bash shell script
---ask root here---
rug update (*)
Before (*) is executed I want to ask the user (mostlikely root), if he agrees (some press "y" to execute question)
If anything else is pressed like "n" (*) command should be skip and that batch file finished.
Reason: "rug list-updates" gives me a list all new updates and there might be a reason to skip the automatic update.
This is for SLES 10 yum update proxy.