tramp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Connect to the ssh and execute any command


From: Michael Albinus
Subject: Re: Connect to the ssh and execute any command
Date: Wed, 18 Sep 2013 15:04:10 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

yary <address@hidden> writes:

> I'm not sure if perl is on Andrey's remote host, but I recall that
> other parts of Tramp uses it. So here are perl-based alternates to
> "id":
>
> # id -u
> perl -le 'print$>'
>
> # id -un
> perl -le 'print scalar getpwuid($>)'
>
> # id -g
> perl -le 'print($)=~/(\d+)/)'
>
> # id -gn
> perl -le 'print scalar getgrgid($))'

Looks good, thanks! Andrey, do you have Perl there?

> -y

Best regards, Michael.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]