Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ssh remote command



I'm trying to slurp some data out of a log file via ssh and I'm
getting different results from ssh and doing it on the localhost.
Both results are fine, though I'm curious as to why the output via ssh
is different.


[paul at server1 ~]$ ssh server2 "grep 'ORA-' /var/log/core.log | awk
'{print $2}' | sort | uniq -c | sort -rn"
     26 java.sql.SQLException: ORA-00001: unique constraint
(SPRINT_CAMPAIGN.MO_C_USER_INTEREST_ENTRY_1) violated
     18 java.sql.SQLException: ORA-00001: unique constraint
(SPRINT_CAMPAIGN.MO_C_USER_INFO_1) violated [newbury at monitor ~]$

On the local host:

[paul at server2 ~]$ sudo grep 'ORA-' /var/log/core.log | awk '{print
$2}' | sort | uniq -c | sort -rn
     44 ORA-00001:
[paulr at server2 ~]

Anyone have any ideas?  Is it something to do with the quotes in the
command over ssh?

Thanks,
Paul

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.





BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org