Re: remote ssh
- From: "tester" <bshah@xxxxxxxxxxx>
- Date: 30 Sep 2006 01:27:03 -0700
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
.
- Follow-Ups:
- Re: remote ssh
- From: Michael Heiming
- Re: remote ssh
- References:
- remote ssh
- From: tester
- Re: remote ssh
- From: Michael Heiming
- remote ssh
- Prev by Date: Re: remote ssh
- Next by Date: Re: Unix shell script on windows
- Previous by thread: Re: remote ssh
- Next by thread: Re: remote ssh
- Index(es):
Relevant Pages
|