Results 1 to 2 of 2
Hi,
I have the following command that works
Code:
ssh root{at}IPADDRESS 'vim-cmd vmsvc/power.getstate 64 | grep Powered | awk "{ print $2}"'
Which outputs the following text:-
Powered on
I ...
- 09-29-2010 #1Just Joined!
- Join Date
- Sep 2010
- Posts
- 8
Bash: Remote SSH command append to AWK
Hi,
I have the following command that works
Which outputs the following text:-Code:ssh root{at}IPADDRESS 'vim-cmd vmsvc/power.getstate 64 | grep Powered | awk "{ print $2}"'
Powered on
I would like to Append some text so the output is:-
Ubuntu Server: Powered on
Every different variation that I have tried ends up in an unexpected token.
Any ideas? Thanks in advance
Harv
PS: Please ignore the {at} for the ssh command. This board saw it as external url and didn't like it
- 10-01-2010 #2Just Joined!
- Join Date
- Sep 2010
- Posts
- 8
Any ideas on this?


Reply With Quote