Perl Trouble Question

Ralph Mellor ralph at dimp.com
Thu Nov 11 20:43:47 CST 1999


is $wrappedKey binary? if so, you might need to set binmode.

does this stuff work when done directly from a shell?

Gregory Stooksberry wrote:
> 
> Need to get this working by tomorrow on an NT4 Machine, Perl Version 5.004
> I've tracked it to this part of the code.....
> 
>    open ( CRYPT, "| $MCKencrypt >$tempfile" ) || die "Couldn't open
> tempfile: $!";
> 
>     ...Snip comments....
> 
>     print CRYPT ("$wrappedKey\r\n");
>     print CRYPT ($message);
>     print CRYPT ("\r\n");   # force a flush
>     close ( CRYPT ) || die "Couldn't close tempfile: $!";
> 
> The temp file is opened but nothing is ever written to it. Then the code
> fails at the
> close '(CRYPT)' line with error "The Syntax of the command is incorrect".
> Both $wrappedKey and $message are ok. $MCKencrypt is an external encryption
> executable.
> 
> Any obvious mistakes? Debugging suggestions?
> 
> PS - This is part of a commercial package we just bought.
> 
>  Gregory Stooksberry
> Systems Administrator
>    Colorsmart.com
> greg at colorsmart.com
> 
> --
> To unsubscribe send mail to perl-class-request at wwns.com and place
>                 "unsubscribe" in the subject field.
> 
> If you have any problems please contact david at wwns.com and let
> me know what happened.

-- 
Ralph Mellor: http://www.dimp.com/diipeople.html     615.292.2917 x2
Tree Of Knowledge? Think biology, not branches. Think cybernetics...
--------------------------------------------------------------------
Digital Impact: http://www.dimp.com/    615.292.2917 or 877.DIMP.COM
2510 Essex Place, Nashville TN 37212               Fax: 615.269.9520



More information about the Nashville-pm mailing list