MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: Gloabl sub only working with debug on?



Quoting Nicholas Albright (albrnick@bobcat.ent.ohiou.edu):
> 
> 
>   I am having a probelm with getting the output of a open3 command.  I
> seem to only actually get the output when minivend is run in it's debug
> mode.  I append many different things to $output as I go through the sub,
> to check that I'm doing what I'm thinking I'm doing.  But when minivend is
> run normally, I only get the output from my check assignments.  I never
> seem to get the output of my open3 program.  This program works as a stand
> alone perl program.

You might read the caveats and warnings that abound in IPC::Open3.
Since MV closes STDOUT and STDERR in forking mode.....

I think this might be easier:

UserTag pgp-encrypt Order command recipient 
UserTag pgp-encrypt HasEndTag
UserTag pgp-encrypt Routine <<EOR
sub {
	my ($command, $key, $body) = @_;
	return Vend::Order::pgp_encrypt($body, $key, $command);
}
EOR

[pgp-encrypt command="/usr/bin/pgpe -fat -r who@tosend.com"]
Encrypt this!!!
[/pgp-encrypt]

-- 
Mike Heins                          http://www.minivend.com/  ___ 
                                    Internet Robotics        |_ _|____
Fast, reliable, cheap.              131 Willow Lane, Floor 2  | ||  _ \
Pick two and we'll talk.            Oxford, OH  45056         | || |_) |
 -- unknown                         <mikeh@minivend.com>     |___|  _ <
                                    513.523.7621 FAX 7501        |_| \_\


Search for: Match: Format: Sort by: