Jump to content

Template:Networking rut2 9 modbus custom register block: Difference between revisions

no edit summary
No edit summary
No edit summary
 
Line 32: Line 32:
  do
  do
  date > /tmp/regfile  #where data will be stored
  date > /tmp/regfile  #where data will be stored
  df {{!}} awk 'NR==3 {print $3}' >> /tmp/regfile
  df | awk 'NR==3 {print $3}' >> /tmp/regfile
  df {{!}} awk 'NR==4 {print $3}' >> /tmp/regfile
  df | awk 'NR==4 {print $3}' >> /tmp/regfile
  sleep 5
  sleep 5
  done
  done
Line 43: Line 43:
  do
  do
  date > /tmp/regfile  #where data will be stored
  date > /tmp/regfile  #where data will be stored
  df {{!}} awk 'NR==3 {print $3}' >> /tmp/regfile
  df | awk 'NR==3 {print $3}' >> /tmp/regfile
  df {{!}} awk 'NR==4 {print $3}' >> /tmp/regfile
  df | awk 'NR==4 {print $3}' >> /tmp/regfile
  sleep 5
  sleep 5
  done
  done