Home
The Toolkit for Online Communities
17107 Community Members, 0 members online, 2487 visitors today
Log In Register
OpenACS Home : Forums : OpenACS Development : exec bash command pdftk within TCL page : One Message

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

Collapse
Posted by Dave Bauer on
It says the tmp pdf files don't exist

/tmp/pdf_0.pdf /tmp/pdf_1.pdf not found as file or resource.
Error: Failed to open PDF file:

That is unrelated to exec.

Either its a permissions issue or the files don't exist.

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,