USER (was Re: exists or similar command to work like grep on file system files)
Bruce Easton
bruce at stn.com
Thu Feb 13 11:55:57 PST 2014
James, testing on Linux (filepro version 5.0.14) I don't see a way to
make the name of the user program a variable. There shouldn't be any
need to send an argument on the command line since you can send any
number of arguments to the program with simple assignments using the
user command label:
Then: user kenbrody = flantec/scripts/findphoto
Then: kenbrody=qx '<--send to program
Then: kenbrody=qz '<--send something else
.
.
.
Then: aa=kenbrody '<--start reading output from program
.
.
See my earlier email for example of this.
Bruce
Also, I was going to suggest using the OPENDIR solution since avoiding
the external program usually makes things more easily portable and
compatible, but as you probably found, the OPENDIR doesn't like a
wildcard on both ends of a search expression as in:
*xyz*
On 2/13/14 12:45 PM, James Flanagan wrote:
> ARGGHH! I am an idiot. I did not know of the USER command until yesterday, and all the while, i have a global variable USER in my code. needless to say, once i changed the name of the global variable, the command does not result in an error and actually works.
>
> Ken, I apologize for wasting your time on that matter.
>
> Now that I have the command working properly, is this possible, where i could define the PATHNAME (or more specifically, an argument) to the command? If so, I am home free.
>
> ::qv="/flantec/scripts/findphoto"<qx:
> ::user kenbrody = (qv):
>
> So Far i have not been able to get this to work. Thank you all very much
>
> 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 13, 2014, at 10:50 AM, Kenneth Brody <kenbrody at spamcop.net> wrote:
>
>> On 2/13/2014 10:48 AM, James Flanagan wrote:
>>> Ken,
>>>
>>> no, it does not matter what i put the PRGNAME field, as you can see here: Thanks,
>>>
>>> *** A filePro Error Has Occurred ***
>>>
>>> Input Processing
>>> Line Number: 419
>>>
>>> user kenbrody = /flantec/scripts/findphoto
>>> ^
>>> Process contains a syntax error at position indicated.
>> [...]
>>
>> Is this error in *cabe, starting *clerk/*report, or when running *clerk/*report?
>>
>> What if you make a 1-line prc with that line?
>>
>> --
>> Kenneth Brody
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://mailman.celestial.com/pipermail/filepro-list/attachments/20140213/25cafff1/attachment.html
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> Subscribe/Unsubscribe/Subscription Changes
> http://mailman.celestial.com/mailman/listinfo/filepro-list
>
More information about the Filepro-list
mailing list