On Tue, 2002-02-12 at 16:57, Patrascu Eugeniu wrote:
> 
> in princpiu, tot ce vreau sa fac, este sa ma leg de la un alt comp, sa 
> rulez o comanda ca root (ar fi bine daca nu ar cere pass) si sa vad 
> outputul. (toata chestia asta sa o fac dintr-un script si de aceea as 
> vrea sa nu imi ceara pass).
> rsh -lroot a.b.c.d ping -c5 www.yahoo.com

Poti face acelasi lucru cu ssh, iar problema parolei e simplu
rezolvabila (cu cheie publica/privata pe ssh).
rsh e periculos, evita-l chiar daca asta inseamna un efort suplimentar.

[florin@stantz florin]$ ssh florin@diaspar ping -c 5 localhost
florin@diaspar's password: 
PING localhost.corp.sgi.com (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=255 time=0.510 ms
64 bytes from 127.0.0.1: icmp_seq=1 ttl=255 time=1.314 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=255 time=1.373 ms
64 bytes from 127.0.0.1: icmp_seq=3 ttl=255 time=1.236 ms
64 bytes from 127.0.0.1: icmp_seq=4 ttl=255 time=1.304 ms

----localhost.corp.sgi.com PING Statistics----
5 packets transmitted, 5 packets received, 0.0% packet loss
round-trip min/avg/max = 0.510/1.147/1.373 ms
[florin@stantz florin]$

-- 
Florin Andrei

"X is for X-Rays. Widespread irradiation of southern California
with X-rays has prevented the spread of midichlorians outside of
George Lucas." - Alphabetica Cyberia

---
Send e-mail to '[EMAIL PROTECTED]' with 'unsubscribe rlug' to 
unsubscribe from this list.

Raspunde prin e-mail lui