yary <not....@gmail.com> 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.

_______________________________________________
Tramp-devel mailing list
Tramp-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/tramp-devel

Reply via email to