This forum has been archived. All content is frozen. Please use KDE Discuss instead.

kdesudo

Tags: None
(comma "," separated)
motya
Registered Member
Posts
2
Karma
0

kdesudo

Wed Jan 04, 2017 8:30 am
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
zevonw
Registered Member
Posts
1
Karma
0

Re: kdesudo

Wed Jan 04, 2017 1:41 pm
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
motya
Registered Member
Posts
2
Karma
0

Re: kdesudo

Wed Jan 04, 2017 2:43 pm
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.


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]