If I call inxi -i from the command line, it works correctly: rprice@maria ~ A=( $(inxi -i -c 0 | grep "WAN IP") ); declare -p A declare -a A=([0]="WAN" [1]="IP:" [2]="217.65.141.51")
but the same code called as a cron job with script #! /bin/bash -u A=( $( inxi -i -c 0 | grep "WAN IP" ) ) declare -p A produces the reply From: Cron Daemon <[email protected]> To: [email protected] Subject: Cron <rprice@maria> /usr/local/bin/newip.sh declare -a A=([0]="WAN" [1]="IP:" [2]="<filter>") It's probably not relevant, but the personal cron job is called from /var/spool/cron/crontabs/rprice with command 15 * * * * /usr/local/bin/newip.sh Where does the <filter> come from ? How can I persuade the inxi cron job to tell me the WAN IP ? Roger

