I have query about shell script
MYIPPADDR=`ifconfig ppp0 2>/dev/null|awk '/inet addr:/ {print $2}' | sed 's/addr://'`
if [ ! -z "$MYIPPADDR" -a "$MYIPPADDR" != "" ];
where MYIPPADDR, i am getting my pc ip address and i am checking condition that weather it is null or blank and the script file which i am using is executes properly in console but executes again and again by crontab. So could not able to trace it out where the problem is. Can some one help me on this.