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

Collapse
Posted by Iuri Sampaio on
Impossible.

I see the files within /tmp
Plus I set the directory to be 777 by default. Recursively!

Collapse
Posted by Iuri Sampaio on
mda@ubuntu:~$ ls -l /tmp
total 744
-rwxrwxrwx 1 mda web 668409 2011-08-16 13:22 pdf_0.pdf
-rwxrwxrwx 1 mda web 89202 2011-08-16 13:22 pdf_1.pdf
Collapse
Posted by Iuri Sampaio on
my guess is TCL parsing treats "/tmp/pdf_0.pdf /tmp/pdf_1.pdf" as an unique file instead of two
Collapse
Posted by Iuri Sampaio on
Okay, I was correct.

If the list contains just one file the script works fine.
The issue now is:

1) why does it happen?
2) How to pass two or more files to the command line using a TCL variable?

Cheers,