profx
ill never 4get watsisname
i am making a script that uploads my ip address to a website. It works perfectly when run from terminal. The shell i am using is sh
this line gives me my ip address on interface ppp0
however when this is run from the cron tab at the specfied time it outputs nothing, rendering my script useless.
WHY???
by the way is there a better way of getting the ip address off interface ppp0?
Code:
ifconfig | tail -1 | tr " " "\n" | head -2 | tail -1
this line gives me my ip address on interface ppp0
however when this is run from the cron tab at the specfied time it outputs nothing, rendering my script useless.
WHY???
by the way is there a better way of getting the ip address off interface ppp0?