Hey Thanks to all, very helpful
Regards
--
David
- Original Message
From: Steven revimmo
To: mailing list for gambas users
Sent: Wednesday, August 5, 2009 9:30:46 AM
Subject: Re: [Gambas-user] Executing commands as root
I used this :
SHELL "kdesu " & C
I used this :
SHELL "kdesu " & Chr(34) & "/usr/sbin/lpadmin -p request_ps -v
'pipe:/bin/cat - > " & User.Home & "/request/work/tempfile.ps' -m
PostscriptColor.ppd -E" & Chr(34) WAIT
(to install a printer)
cheers,
steven
Le mercredi 05 août 2009 à 17:07 +0200, Stefano Palmeri a écrit :
>
> hey David,
>
> I'm using Debian Lenny 5.0.2 and Gambas 2.14
>
> for me this command works fine
>
> SHELL "gksudo gnome-commander"
>
> but I think it's Gnome specific
>
> I hope it helps
>
> Regards
> Dimitris
>
By using the INPUT/OUTPUT option of SHELL, you can run "su" or "sudo" inside a
termi
Il mercoledì 5 agosto 2009 15:45:24 David Villalobos Cambronero ha scritto:
> Hi all,
>
> Time ago, someone asked about executing commands as root and pass the root
> password to SHELL, does anybody remember the solution?
>
> Regards
>
>
> --
> David
>
>
He was me. My error was I opened the shell
Joshua Higgins schrieb:
> Not sure its possible.
>
> 2009/8/5 David Villalobos Cambronero
>
>> Hi all,
>>
>> Time ago, someone asked about executing commands as root and pass the root
>> password to SHELL, does anybody remember the solution?
>>
>> Regards
>>
>>
>> --
>> David
>>
Maybe sudo
hey David,
I'm using Debian Lenny 5.0.2 and Gambas 2.14
for me this command works fine
SHELL "gksudo gnome-commander"
but I think it's Gnome specific
I hope it helps
Regards
Dimitris
On Wed, Aug 5, 2009 at 8:50 AM, Joshua Higgins wrote:
> Not sure its possible.
>
> 2009/8/5 David Villal
Not sure its possible.
2009/8/5 David Villalobos Cambronero
> Hi all,
>
> Time ago, someone asked about executing commands as root and pass the root
> password to SHELL, does anybody remember the solution?
>
> Regards
>
>
> --
> David
>
>
>
>
>
>
> --