user command

Chris Rendall crendall at teamind.com
Wed Oct 7 08:46:19 PDT 2009


>> I looked at opendir() but it didn't seem to work.

>What was your exact opendir() call?

a=opendir("*.pdf","/jobs/"{jn{"/r-cmtrs/filler\ metal")

I used the backslash because that is what I use from the command line to view files in the directory.  I took the backslash out and it works with the space in the directory name.

>> I was getting a -22 after executing the opendir() command.  

>Good.  You avoided my "define 'doesn't seem to work'" answer.  :-)

I've seen you ask other people that, so I tried to be specific...  :)

>What O/S is this?  What does ERRNAME("-22") return?  (On my SCO Unixware 
>box, system error 22 is "invalid argument".)

I'm running SUSE Linux Enterprise 9.  -22 is invalid argument on my system also.

Taking the backslash make its work correctly.  Is the value returned by opendir() the number of files it found that matched "*.pdf"?  

Chris


More information about the Filepro-list mailing list