Cfexecute Problem

What’s wrong?
it generate an image. but not o real QR

    <cfexecute  name="qrencode" arguments='-o #temp_vorschau#/pdf/#vorschau_bild#_22.png < /var/www/CFIDE/w2p/temp/pdf/#vorschau_bild#.txt' timeout="1">
        </cfexecute>

if I try it on command line. all is fine

qrencode -o 333.png < 333.txt

Don’t forget to tell us about your stack!

OS: ???
Java Version: ???
Tomcat Version: ???
Lucee Version: ???

I don’t remember if I had issues with the arguments attribute of cfexecute, but I always put the arguments in the name attribute. You could also try replacing qrencode with echo to confirm your arguments, using the variable attribute to get the output, and errorVariable to see if there’s an error.

1 Like

The problem may be the “redirection” operator <. I’ve found that Java will not recognize it when passing commands to Windows.

Does it work if you simply pass the text contained in /var/www/CFIDE/w2p/temp/pdf/#vorschau_bild#.txt directly in the command, which then wouldn’t require the <?

1 Like