Not the best solution - the ez-ipupdate.c doesn't look that clean. Example (what if recv() returns -1?):
if(FD_ISSET(client_sockfd, &readfds)) { bread = recv(client_sockfd, buf, len-1, 0); dprintf((stderr, "bread: %d\n", bread)); buf[bread] = '\0'; dprintf((stderr, "got: %s\n", buf)); if(bread == -1) On 9/21/05, Martin Dommermuth <[EMAIL PROTECTED]> wrote: > * Alexander Farber wrote/schrieb: > > > Can't you put !stuff into /etc/hostname.pppoe0 ? > > nope, I tried that. Seems not to be executet on reconnect. > I now got it working with the daemon mode of ez-ipupdate. If I need > to call any other scripts on reconnect it also has this option: > -e, --execute <command> shell command to execute after a > successful update