On Tuesday 12 August 2003 13:59, François Chenais wrote: > On Tue, 12 Aug 2003 13:51:32 +0200 > > Elie De Brauwer <[EMAIL PROTECTED]> wrote: > > > [1] ssh [EMAIL PROTECTED] "cat /etc/passwd | awk -F ':' '{ print $1; }'" > > > > > > ONLY prints empty lines > > > > > > > > > > > > [2] ssh [EMAIL PROTECTED] "( \ > > > uname -a; \ > > > echo '<hr>'; \ > > > fdisk -l; \ > > > echo '<hr>'; \ > > > ps auwxf; \ > > > echo '<hr>'; \ > > > find /users -type f \ > > > echo '<hr>'; \ > > > cat /etc/passwd; \ > > > for name in `cat /etc/passwd | awk -F : '{ print $1}'`; do echo > > > '<b>'$name'<b><ul>';crontab -u name -l; echo '</ul>'; done; \ echo > > > '<hr>'; \ > > > )" > > > > > > > > > the for name in ... command is executed by the local machine and not > > > the remote one ??? > > > > > > > > > > > > Any help is welcome :-) > > > > > > François > > Did you try on an other host then localhost ?;-)
I did now, and still i see no problem (hawking == 192.168.0.1 x86, kafka == 192.168.0.2 == sparc) hawking:~# ssh [EMAIL PROTECTED] "nslookup www.google.com; ping -c 2 192.168.0.1; ping -c 2 192.168.0.2; ping -c 2 192.168.0.3; uname -a; echo \"This seems to work here\"; ssh -V" The authenticity of host 'kafka (192.168.0.2)' can't be established. RSA key fingerprint is 1d:90:bf:23:60:c4:20:21:f8:5a:b4:6a:2c:fd:4c:c3. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'kafka' (RSA) to the list of known hosts. [EMAIL PROTECTED]'s password: Note: nslookup is deprecated and may be removed from future releases. Consider using the `dig' or `host' programs instead. Run nslookup with the `-sil[ent]' option to prevent this message from appearing. Server: 195.130.130.5 Address: 195.130.130.5#53 Non-authoritative answer: Name: www.google.com Address: 216.239.51.99 PING 192.168.0.1 (192.168.0.1): 56 data bytes 64 bytes from 192.168.0.1: icmp_seq=0 ttl=64 time=0.2 ms 64 bytes from 192.168.0.1: icmp_seq=1 ttl=64 time=0.2 ms --- 192.168.0.1 ping statistics --- 2 packets transmitted, 2 packets received, 0% packet loss round-trip min/avg/max = 0.2/0.2/0.2 ms PING 192.168.0.2 (192.168.0.2): 56 data bytes 64 bytes from 192.168.0.2: icmp_seq=0 ttl=255 time=0.1 ms 64 bytes from 192.168.0.2: icmp_seq=1 ttl=255 time=0.1 ms --- 192.168.0.2 ping statistics --- 2 packets transmitted, 2 packets received, 0% packet loss round-trip min/avg/max = 0.1/0.1/0.1 ms PING 192.168.0.3 (192.168.0.3): 56 data bytes 64 bytes from 192.168.0.3: icmp_seq=0 ttl=64 time=3.5 ms 64 bytes from 192.168.0.3: icmp_seq=1 ttl=64 time=0.4 ms --- 192.168.0.3 ping statistics --- 2 packets transmitted, 2 packets received, 0% packet loss round-trip min/avg/max = 0.4/1.9/3.5 ms Linux kafka 2.4.18 #2 Thu Apr 11 14:37:17 EDT 2002 sparc64 GNU/Linux This seems to work here OpenSSH_3.6.1p2 Debian 1:3.6.1p2-4, SSH protocols 1.5/2.0, OpenSSL 0x0090702f hawking:~# uname -a Linux hawking 2.4.20 #19 Fri Jul 25 18:32:05 CEST 2003 i586 GNU/Linux hawking:~# -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]