[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.
- Re: Connect to the ssh and execute any command, Michael Albinus, 2013/09/13
- Re: Connect to the ssh and execute any command, Andrey Tykhonov, 2013/09/17
- Re: Connect to the ssh and execute any command, Michael Albinus, 2013/09/17
- Re: Connect to the ssh and execute any command, Andrey Tykhonov, 2013/09/17
- Re: Connect to the ssh and execute any command, Michael Albinus, 2013/09/18
- Message not available
- Re: Connect to the ssh and execute any command, Michael Albinus, 2013/09/18
- Re: Connect to the ssh and execute any command, yary, 2013/09/18
- Re: Connect to the ssh and execute any command,
Michael Albinus <=
- Re: Connect to the ssh and execute any command, Andrey Tykhonov, 2013/09/18
- Re: Connect to the ssh and execute any command, Michael Albinus, 2013/09/18
- Re: Connect to the ssh and execute any command, Andrey Tykhonov, 2013/09/18
- Re: Connect to the ssh and execute any command, Michael Albinus, 2013/09/19
- Re: Connect to the ssh and execute any command, Andrey Tykhonov, 2013/09/18