Re: ssh -> sudo

Cédric BRINER via gull <gull-04vmY7CpswVinyhjFObuvR+/[email protected]>
Newsgroups gmane.org.user-groups.gull.general
Message-ID <[email protected]>
Salut,> # ssh -> sudo (marche pas)
> ssh host-distant sudo bash -c "$(declare -f uname_id) ; uname_id"
j'ai finalement trouvé, du moins je crois:

ssh host-distant "sudo bash -c '$(declare -f uname_id); uname_id'"

C'est la classe totale !

cED
_______________________________________________
gull mailing list
[email protected]
https://forum.linux-gull.ch/mailman/listinfo/gull
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.