[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Stupid Bash Question
- Subject: [ale] Stupid Bash Question
- From: colbert.brandon at gmail.com (Brandon Colbert)
- Date: Wed, 7 Mar 2012 11:07:05 -0500
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