Re: remote ssh



Hi Michael,
Sorry i need expr as well...

VARIABLE=`ssh HOST "expr `df -k | grep " /mnt" | awk '{print \$3}'` -
112000)"


VARIABLE=`ssh HOST "expr `df -k | grep " /mnt" | awk '{print \$3}'`)"

Try something like this:

VAR=`ssh -t HOST "df -k /mnt" | awk 'NR>1{print $3}'`

Good luck

BTW
Please quote context on reply, thx:
http://groups.google.com/support/bin/answer.py?answer=14213

--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo zvpunry@xxxxxxxxxx | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 108: The air conditioning water supply pipe
ruptured over the machine room

.



Relevant Pages

  • Re: an humble proposition
    ... > their way past the obnoxious trolls, and find useful tech stuff. ... Thx, hope so. ... In addition a pretty good write-up can be found ... #bofh excuse 296: The hardware bus needs a new token. ...
    (comp.os.linux.misc)
  • Re: dict.has_key(x) versus x in dict
    ... Ah, thx. ... Thought the "x in d" syntax might search in d.valuestoo. ... BOFH excuse #12: ... dry joints on cable plug ...
    (comp.lang.python)
  • Re: Tru64 Unix 5.1A on Digital Alphaserver 1000A 4/266
    ... > thx you, ... i mentioned that if you had a Toshiba hanging around... ... Most RRD4x are ... BOFH excuse #368: The cause of the problem is: Virus transmitted from ...
    (comp.sys.dec)