Ayuda con un Cron para levantar una vpn con pptp

Imagen de Night_23

Forums: 

Estimados tengo un problema que de pronto para Uds. es facil de solucionar pero he estoy ya casi loco y quisiera que alguien me ayude bien la cuestion es esta esta configurado todo y funciona bien se conecta y todo le he puesto un shell en el crontab pero no se ejecuta y no se levanta al momento de correr desde el scrip funciona.

El scrip algo asi

#!/bin/bash
{
DIR=/etc/ppp/peers
cd $DIR
/usr/share/doc/ppp-2.4.3/scripts/pon tunnel
sleep 5
/sbin/ifconfig ppp0 mtu 1400
/sbin/ifconfig
ps -edaf | grep pppd
} 2>&1 | tee /tmp/ppp0_up.tee.$$

y no funciona alguien tiene una idea.. gracias

le aumente el primera linea

Imagen de Night_23

le aumente el primera linea lo siguiente
./etc/init.d/fuctions
y al parecer se conecta pero en el messages me sale lo siguiente:
Connect: ppp0 <--> /dev/pts/6
Aug 17 15:10:32 xxxx pptp[8082]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 1 'Start-Control-Connection-Request'
Aug 17 15:10:33 xxxx pptp[8082]: anon log[ctrlp_disp:pptp_ctrl.c:738]: Received Start Control Connection Reply
Aug 17 15:10:33 xxxx pptp[8082]: anon log[ctrlp_disp:pptp_ctrl.c:772]: Client connection established.
Aug 17 15:10:33 xxxx pptp[8082]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 7 'Outgoing-Call-Request'
Aug 17 15:10:34 xxxx pptp[8082]: anon log[ctrlp_disp:pptp_ctrl.c:857]: Received Outgoing Call Reply.
Aug 17 15:10:34 xxxx pptp[8082]: anon log[ctrlp_disp:pptp_ctrl.c:896]: Outgoing call established (call ID 0, peer's call ID 896).
Aug 17 15:10:37 xxxx pppd[8028]: tcflush failed: Bad file descriptor
Aug 17 15:10:37 xxxx pptp[8082]: anon log[callmgr_main:pptp_callmgr.c:231]: Closing connection (unhandled)
Aug 17 15:10:37 xxxx pptp[8082]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 12 'Call-Clear-Request'
Aug 17 15:10:37 xxxx pptp[8082]: anon log[call_callback:pptp_callmgr.c:78]: Closing connection (call state)
Aug 17 15:10:37 xxxxx pppd[8028]: Exit.

pero tambien tengo lo siguiente el ps -edaf

00:00:00 /usr/sbin/pppd call tunnel
root 8242 8240 0 15:15 ? 00:00:00 pptp xxx.xxx.xx.xx --nolaunchpppd
root 8259 8233 0 15:15 ? 00:00:00 grep pppd

alguna idea