exists or similar command to work like grep on file system files

James Flanagan James at Flantec.com
Thu Feb 13 07:21:14 PST 2014


Ok, after reviewing the suggestions of how to do what i am trying to accomplish, it does not appear that OPENDIR will meet my needs, but the USER command looks very promising.  

However, even after looking at the examples and reviewing the manual  for syntax, i cannot quite figure out how to use the command.  it seems to error on the PRGNAME label.  Thank you very much in advance.  

::user prog = "/flantec/scripts/findphoto":


*** A filePro Error Has Occurred ***

Input Processing
Line Number: 418

user prog = "/flantec/scripts/findphoto"
     ^
Process contains a syntax error at position indicated.


James Flanagan
Flantec.com

email:	James at Flantec.com
mobile:	760-458-8498
home: 	219-221-6219
text:		7604588498 at txt.att.net

aim:		Flantec
oovoo:	Flantec
Skype:	Flantec
ichat:	Flantec at mac.com

home:	1901 Cidermill Road
		Michigan City, IN 46360

On Feb 12, 2014, at 9:54 AM, Kenneth Brody <kenbrody at spamcop.net> wrote:

> On 2/11/2014 11:19 PM, James Flanagan wrote:
>> Server: 	FreeBSD 9.2 Filepro:	5.7.0.4
>> 
>> I am looking a way to have filepro verify whether a file exists using
>> only a partial file name (like grep).  This will be used with photographs
>> from all sorts of cameras so instead of trying to account for every
>> possible camera filename structure, i would like to be able to supply
>> filepro with 3-4 numbers and a directory and have filepro determine if a
>> file with that number exists in a file name.  that will be accurate
>> enough for what i need the code to do.
> [...]
>> [root at filepro a]# ls
>> IMGP0997.JPG	IMGP0999.JPG	IMGP1001.JPG	IMGP1003.JPG
>> IMGP0998.JPG	IMGP1000.JPG	IMGP1002.JPG	IMGP1004.JPG
>> 
>> ::aa="0998": :exists("/tmp/a/*"{aa{"*") eq "1":msgbox aa<"exists":
> [...]
> 
> As you see, EXISTS() needs a filename, not a wildcard mask.
> 
> Check out OPENDIR().
> 
> -- 
> Kenneth Brody
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> Subscribe/Unsubscribe/Subscription Changes
> http://mailman.celestial.com/mailman/listinfo/filepro-list

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.celestial.com/pipermail/filepro-list/attachments/20140213/3974eb25/attachment.html 


More information about the Filepro-list mailing list