On Fri, 26 Jun 2009, bill lam wrote: > On Fri, 26 Jun 2009, Matthew Brand wrote: > > 'output pdf "/tmp/capital/test space.pdf"' plot i.10 > > NB. fails with pop-up window: > > NB.Unable to write file: /tmp/capital/test space.pdf > > NB.The file name is invalid. > > > > 'output pdf "/tmp/Capital/test space.pdf"' plot i.10 > > NB. fails with pop-up window: > > NB.Unable to write file: /tmp/Capital/test space.pdf > > NB.The file name is invalid. > > Again I suspect the pdf files are already written out because 1!:2 will > not popup window when failed, that popup might come from pdf viewer. > Please add lines such as > > smoutput (dquote PDFREADER_j_),' ',dquote file > > hostcmd (dquote PDFREADER_j_),' ',dquote file > > or > smoutput 'winexec *',PDFREADER_j_,' ',dquote file > wd 'winexec *',PDFREADER_j_,' ',dquote file > > to trace why it failed.
And do the parent directory /tmp/Capital and /tmp/capital exist or not? If not you might need to teach plot to create missing intermediate folder before writing the pdf file, may be 'mkdir -p' -- regards, ==================================================== GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
