#! /bin/bash ring=-r0 card=-c0 SLV_HCM=1 echo "0x10001000" >> scsnr.txt echo "0x10001000" >> scsnr.txt #echo Scanning SCSN Slaves: \"$SCSN_SLV_LIST\" #for SLV in $SCSN_SLV_LIST ; #do # echo Slave: $SLV pc2tp -noaddr $card $ring -slv $SLV_HCM -gsa 0xf0f0 -gea 0xf0f2 -gb tmpscsn cat tmpscsn >> scsnr.txt #done echo "0x00000000" >> scsnr.txt echo "0x00000000" >> scsnr.txt rm tmpscsn # check if the new data differs from the old diff -q scsnr.txt scs00000001.txt mv scsnr.txt scs00000001.txt