Spaces in filename ( linux )

Post Reply
pkoppel
Posts: 4
Joined: Tue May 01, 2007 1:12 pm

Spaces in filename ( linux )

Post 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?
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

Spaces in filename ( linux )

Post 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?
Post Reply