Search Results

Search: Posts Made By: LinuxUser2008
Forum: Solaris 12-24-2010
4,492
Posted By frank_rizzo
try this. /usr/bin/ssh -t $USER@$SERVER1...
try this.

/usr/bin/ssh -t $USER@$SERVER1 "/usr/bin/ssh $USER2@$SERVER2 'echo -n uptime;/opt/OV/bin/snmpget -r 0 -t 60 $nodeName system.3.0 | cut -d: -f3-5'"
Forum: Solaris 12-22-2010
4,492
Posted By bluescreen
I think your issue is a "shell substitution...
I think your issue is a "shell substitution before execution" issue. (See this (http://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html) section 2.1 #4) Try this:
/usr/bin/ssh -t...
Forum: Solaris 12-23-2010
4,492
Posted By bluescreen
I got this to work: $ ssh -t $SERVER1...
I got this to work:
$ ssh -t $SERVER1 /usr/bin/ssh $SERVER2 echo uptime: \\\`uptime \\\| cut -d: -f3-5 \\\`

Notice the "\\\" before the pipe. Sorry I forgot that in my previous post. :o
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 03:12 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy