Registered Member
|
Hello all i am new in this forums.
I have a problem with the kdesudo. I wrote a script that ask for answer from the user and then continue to run. but the script doesn’t continue to run. the example script is test.sh : #!/bin/bash echo " Choose Y OR N " read ans echo $ans while I run the script with kdesudu : kdesudo -u "someuser" test.sh I get the following results. Choose Y OR N #i wrote Y and script didn't give me the result. with the sudo command it works good |
Registered Member
|
The bare script works fine in Konsole as either "user" or "sudo" so I'm wondering if the operation that you're seeking to achieve is in a graphical environment, hence the use use of kdesu / kdesudo?
If that is correct then you could use the "strace" facility and see what is actually happening when you try to do that operation. HTH |
Registered Member
|
actually I am trying to run a script that use also the graphical environment ,this script is include some user questions with the read command then run it in the konsole mode.
|
Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]