Hello everyone.
I really need some help. I was wondering if it was possible to open and execute a mozilla web browser through c code possibly using a fork/ can this be done/
If it can, some source code or idas would be helpful!
Danielle
Hello everyone.
I really need some help. I was wondering if it was possible to open and execute a mozilla web browser through c code possibly using a fork/ can this be done/
If it can, some source code or idas would be helpful!
Danielle
If your going to use C and not C++, than you posted in the wrong section.
whoops...
I am actually using C++, small typo, I was typing quickly.
But do you have any ideas?
Danielle
While i look for an answer, whats perl have to do with this?
I tried what you suggested but no window opened up....
danielle
Hey Rob,
I could possibl try doing it in perl, I put that in there in case anyone new how to do it in perl
Danielle
exactly how much programming have u done in c++?
>>I could possibl try doing it in perl, I put that in there in case anyone new how to do it in perl
It's a piece of cake :-)
Code:#!usr/bin/perl -w use Errno qw(EAGAIN); FORK: { if ($pid = fork) { # Do something print "Parent closing\n"; exit(0); } elsif (defined $pid) { # Open a browser exec '/usr/bin/mozilla'; } elsif ($! == EAGAIN) { sleep 5; redo FORK; } else { die "Can't fork: $!\n"; } }
*Cela*