Forum OpenACS Development: Re: exec bash command pdftk within TCL page

Collapse
Posted by Iuri Sampaio on
lol, i am laughing loud with the 6 rules

http://mark.aufflick.com/blog/2005/11/10/six-stages-of-debugging

Nice read!!

The command
eval [list exec pdftk ${files} cat output $output_file]

didn't work either.
As soon as i figure that out I post here.
Thanks for the feedback!!!

Collapse
Posted by Iuri Sampaio on
Good news! ns_eval solved the problem.

set command "pdftk $files cat output $output_file"

ns_eval exec $command

Collapse
Posted by Iuri Sampaio on
Why is another issue that I will understand now.

Thanks Dave, Thanks Victor

Collapse
Posted by Jeff Rogers on
You should use plain eval, not ns_eval.

ns_eval is used for reinitializing all the tcl interpreters in the server, something you generally don't want to be doing a lot of on a production server.