Dear Jupiter, 
Thanks so much for the reply. However...

 >you are not passing the variabels to 
> it 
> proeprly.
> (an oi, why is that written so incredibly hard to read ???)
> 

sorry about that.

> So you see it has nothgin to do with using system it has to so 
> with 
> calling a funtion as its documented :)
> 

Now what I have is this (let's call the script "test.pl") :

__BEGIN__
use strict;
use Data::Dumper;
use CGI::Carp qw( fatalsToBrowser );
use Acme::Spork;

  my $uemail = "[EMAIL PROTECTED]";
  my $ct = "sugar";
  my $nu = 10;

    # Run the job at the background
     spork(
         sub {
            my ( $ue, $con_type, $nb_un ) = @_;
            system qq("perl compute_price.pl -email $ue -type $con_type -unit 
$nb_un");
         },$uemail, $ct, $nu
     )
    or die qq {Could not fork for spork: $!};

__END__

But why it still doesn't do the job?
If you don't mind you can try it.

The accompanying simple script for "compute_price.pl" can be found here:
http://rafb.net/paste/results/t6kbE092.html

Truly hope to hear from you again.

Regards,
Edward WIJAYA



------------ Institute For Infocomm Research - Disclaimer -------------
This email is confidential and may be privileged.  If you are not the intended 
recipient, please delete it and notify us immediately. Please do not copy or 
use it for any purpose, or disclose its contents to any other person. Thank you.
--------------------------------------------------------

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to