As I stated in the comment inside the code. Echoing witin the system
I assume that means the variables have the proper values in spork.test,
correct?
_works_. But running perl script within system _doesn't work_.
In what way, if its executed it worked but your script may not behave
how
Dear Jupiter,
> a) does it "do the job" by itself:
>
> #!/usr/bin/perl
>
> use strict;
> use warnings;
>
> my $ue = 'whatever';
> my $con_type = 'whatever';
> my $nb_un= 'whatever';
> print "Running: perl compute_price.pl -email $ue -type $con_type -
> unit
> $nb_un\n";
> system "pe
Dear Jupiter,
> b) are the variables what you expect them to be in the spork()ed
> process?
Following your advice below it seem so. But...
>
> spork(
> sub {
> my ( $ue, $con_type, $nb_un ) = @_;
> # write the variables to a file here and check that file afterward
Wijaya Edward wrote:
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
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 i
Saboo, Nandakishore wrote:
Hi Edward,
__BEGIN__
use Acme::Spork;
my $req_id = spork( sub { system("perl compute_price.pl -eml \"$uemail\" -type $ct
-unit $nu"); } )
or die qq {Could not fork for spork: $!};
__END__
Any idea?
What's this Acme::Spork package about(i have no idea) a
And my actuall system call is this::
Ah that is what you failed to mention :)
__BEGIN__
use Acme::Spork;
my $req_id = spork( sub { system("perl compute_price.pl -eml \"$uemail\" -type $ct
-unit $nu"); } )
or die qq {Could not fork for spork: $!};
__END__
Any idea?
Yep, as per the do
Wijaya Edward wrote:
Hi all,
How do you pass a string inside an under system call.
Just like you're doing below, unless I'm misunderstanding the question
I tried to pass a string like this under EMAIL option:
system("perl mycode.pl -email 'test_string' -type $sometype -unit $some_
Wijaya Edward schreef:
> I tried [...]
>
> system( "perl mycode.pl -email 'test_string'
> -type $sometype
> -unit $some_unit" ) ;
>
> But while debugging for mycode.pl I can't see the value for
> [-email], while I can see the value for [-typ
Hi Edward,
>__BEGIN__
> use Acme::Spork;
> my $req_id = spork( sub { system("perl compute_price.pl -eml \"$uemail\"
> -type $ct -unit $nu"); } )
>or die qq {Could not fork for spork: $!};
>
>__END__
>Any idea?
What's this Acme::Spork package about(i have no idea) and it is not installed
on m
Hi Nanda,
Thanks for your reply.
>
> system("perl mycode.pl -email \"$receipt_email\" -type $sometype -unit
> $some_unit");
>
>
But it still cannot work.
What I have in mycode.pl looks like this:
__BEGIN__
use strict;
use Data::Dumper;
use Getopt::Long;
print Dumper [EMAIL PR
>Wijaya Edward wrote on [Friday, May 19, 2006 3:56 PM]
Hi Edward,
>Hi all,
>How do you pass a string inside an under system call.
>I tried to pass a string like this under EMAIL option:
>system("perl mycode.pl -email 'test_string' -type $sometype -unit
>$some_unit");
>or
>system("perl my
12 matches
Mail list logo