[ale] Stupid Bash Question
Brandon Colbert
colbert.brandon at gmail.com
Wed Mar 7 11:07:05 EST 2012
I am trying figure out what the heck is wrong with awk here.
for i in $(seq 1 1); do ssh 127.0.0.$i 'echo `hostname`; if [ `free -m |
grep -i swap | awk '{print $3}'` > 1000 ]; then sudo echo reclaim; else
echo hey; fi'; done
The command works, but I get an error about awk: Any suggestions?
deblapatl01
awk: cmd. line:1: {print
awk: cmd. line:1: ^ unexpected newline or end of string
hey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.ale.org/pipermail/ale/attachments/20120307/95de34da/attachment.html
More information about the Ale
mailing list