LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Connect script failed (https://www.linuxquestions.org/questions/linux-software-2/connect-script-failed-786903/)

er.rohan88 02-04-2010 04:27 AM

Connect script failed
 
Connect script failed

I had made an application which i used the Dailout command to send data on the portal via gprs .


After using this application continusly this starts evolving the the connect script failed error and i dont know the reson of this connect script failed and after restrart machine then it starts working again and after 2 ,3 transaction it starts giving same error so help me and tell me the conditions where this connect script failed error comes.

Please help me in this situation.
this is my code:
Code:

int ppp_open()
{
int fd9,i;
pthread_t thread3;


printf("PPP starting\n");
system("rm -f /var/run/ppp.link");
perror("system");
system("/etc/ppp/dialout&");
perror("dialout");
perror("system");
printf("PPP open\n");
sleep(6);
i=0;
pthread_create(&thread3, NULL,(void *)&display_senddata,(void *)0);   
while(i<20)
    { 
            fd9 = open("/var/run/ppp.link",O_RDONLY);
                perror("open");
        printf("fD9=%d\n",fd9);
        if (fd9 > 0)
          {
          close(fd9);
              pthread_join(thread3, NULL);
          break;
          }
        sleep(1);
        i++;
    }
  if(i>=20)
  {
printf("PPP Closed \n");
lk_dispclr();
lk_disptext(1,0,"PPP FAILED",0);
lk_disptext(5,0,"Press any key",0);
printf("PPP failed\n");
lk_getkey();
ppp_close();
return -1;
  }
 printf("PPP Connected \n");
 lk_dispclr();
 lk_disptext(1,0,"PPP Connected",0);
 sleep(2);
 pthread_exit(NULL);
 return 0;

}


AwesomeMachine 02-05-2010 10:02 AM

I think you want to seek help on a ham radio site.

er.rohan88 02-06-2010 01:23 AM

reply
 
thanks for thinking over my issue .........

but i dint get your wordings might be i am not so smart.
can you clarify ?????


All times are GMT -5. The time now is 06:34 AM.