LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 02-04-2010, 04:27 AM   #1
er.rohan88
LQ Newbie
 
Registered: Feb 2010
Posts: 2

Rep: Reputation: 0
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;

}
 
Old 02-05-2010, 10:02 AM   #2
AwesomeMachine
Senior Member
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian jessie/sid; OpenSuSE; Fedora
Posts: 1,589

Rep: Reputation: 161Reputation: 161
I think you want to seek help on a ham radio site.
 
Old 02-06-2010, 01:23 AM   #3
er.rohan88
LQ Newbie
 
Registered: Feb 2010
Posts: 2

Original Poster
Rep: Reputation: 0
reply

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

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


Reply

Tags
connect, failed, script


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bind9: NDC command failed : rndc: connect failed: connection refused Boudewijn Linux - Networking 19 01-02-2014 07:19 AM
ssh -L '>channel 3: open failed: connect failed:' Luke771 Linux - Networking 14 01-24-2012 03:14 AM
Connect script failed on ppp-go iqbala Linux - Newbie 39 11-15-2007 02:58 PM
pppd[0]: Connect script failed a.toraby Linux - Networking 2 11-03-2006 02:27 PM
online_update failed - ERROR(Media:connection failed)[Connect failed] rover Suse/Novell 8 02-22-2005 07:57 AM


All times are GMT -5. The time now is 11:50 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration