Re: Howto include string in system call

2006-05-20 Thread JupiterHost.Net
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

Re: Howto include string in system call - Answering (a) suggestion

2006-05-19 Thread Wijaya Edward
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

Re: Howto include string in system call

2006-05-19 Thread Wijaya Edward
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

Re: Howto include string in system call

2006-05-19 Thread JupiterHost.Net
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

Re: Howto include string in system call

2006-05-19 Thread Wijaya Edward
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

Re: Howto include string in system call

2006-05-19 Thread JupiterHost.Net
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

Re: Howto include string in system call

2006-05-19 Thread JupiterHost.Net
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

Re: Howto include string in system call

2006-05-19 Thread JupiterHost.Net
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_

Re: Howto include string in system call

2006-05-19 Thread Dr.Ruud
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

RE: RE: Howto include string in system call

2006-05-19 Thread Saboo, Nandakishore
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

Re: RE: Howto include string in system call

2006-05-19 Thread Wijaya Edward
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

RE: Howto include string in system call

2006-05-19 Thread Saboo, Nandakishore
>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