Page 1 of 1

Spaces in filename ( linux )

Posted: Wed Apr 15, 2009 10:54 am
by pkoppel
I have a few files in our system that have some spaces in the path.

<stat $location> is returning file not found

<exec nobr "/usr/local/morph3/bin/anytotx" "-M" $location></exec>
$ret is empty

here is an example of $locaton = "/data/192.168.21.172/vereview/case_09_2580_PROD/binary/2b/74/native. duty btw"

What is the best way to escape the path so that stat and exec work?

Spaces in filename ( linux )

Posted: Wed Apr 15, 2009 11:57 am
by mark
Stat and exec take the filename as it is in the filesystem. Something else is the problem. Does the user that texis is running as have permission all down that path to the file? Is $location fully accurate? How did you determine the value for that? Try
ls -l /data/192.168.21.172/vereview/case_09_2580_PROD/binary/2b/74/|cat -vte
Or use <stat> with globbing to get a list of files in that dir.

What are you getting in $ret.stderr from the exec of anytotx?