Run process in background

2002-04-19 Thread Alex Read
Hi all, I have an html page that when I press the submit button the cgi script runs a shell script. I am having trouble because the html page hangs until the shell script has finished, i.e. the shell script process is not running in the background. I have tried the following; system "$my_shell_

Re: Run process in background

2002-04-20 Thread Alex Read
d the form > page somehow (behind your firewall, etc.), and even > then I wouldn't be comfortable with it. What if > someone entered "rm -rf /" or "; mail > [EMAIL PROTECTED] come from the Security chapter of O'Reilly's excellent > book "CGI Prog

Re: Run process in background

2002-04-22 Thread Alex Read
Food for thought indeed! Fortunately the number of options the user has is small and so I can write my script like so; system "Myscript option1" if ("$Form_input" eq "Nice_things1"); system "Myscript option2" if ("$Form_input" eq "Nice_things2"); etc ... Also this form is being used more as a "

Probably a stupid question

2002-04-26 Thread Alex Read
Hello, OK, I have a nice a simple test case, but I just can't get it to do what I want it to. How do I get this so that when I hit submit it comes straight back with my "hi" message instead of waiting until the sleep command has finished? I've tried playing around with fork and how I execute th

Re: Probably a stupid question

2002-04-26 Thread Alex Read
Hello, OK, we now have the following; #!/usr/bin/perl use strict; my $pid = fork; if ($pid == 0){ exec 'sleep 2; echo "hi"' || die "Cannot sleep: $!" ; } else { print "Content-type: text/html\n\n"; print "\nhi\n\n\n\n"; } So the child process is the only one that sleeps for 2, then prints hi,

Re: Probably a stupid question

2002-04-26 Thread Alex Read
Thanks guys, I think this should be able to do what I want, as the browser goes straight to the return page and prints 'HI1'. Thanks again, Alex #!/usr/bin/perl use strict; defined(my $pid = fork ) or die "Could not fork: $!"; if ($pid){ print "Content-type: text/html\n\n"; print "\nHI1\n\n\

Re: yahoo mail did't compile HTML mail

2002-05-14 Thread Alex Read
messag from ESS wrote: > hi all > I konw you havn't much time then I will begain directly > Probem is: > 1- I make a program to send a mail. > 2- I send an HTML mail normaly to yahoo and hotmail. > 3- The hotmail compile it and display as a web bage. > 4- The yahoo did't compile it and display th

Re: yahoo mail did't compile HTML mail

2002-05-14 Thread Alex Read
messag from ESS wrote: > Thanks Alex Read > but it didnt work.and I can;t control on the user broswes. > > NOTE: I want it compiled Like hotmial, the problem with yahoo > > Thanks agian > = > > >From: Alex Read <