USER (was Re: exists or similar command to work like grep on file system files)
James Flanagan
James at Flantec.com
Thu Feb 13 12:53:00 PST 2014
Bruce & Ken,
Thank you very much for your help. I have a better understanding of the command & I now have the code working just as i originally planned on it. Thanks again.
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 2:30 PM, Kenneth Brody <kenbrody at spamcop.net> wrote:
> On 2/13/2014 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
> [...]
>
> filePro currently requires that the command be specified on the USER line,
> and doesn't take any variables.
>
> You could pass the variable to the program. Using your example:
>
> user prog = /flantec/scripts/findphoto
> prog = qx ' Pass the filename to the script
> result = prog ' Get the result back
>
> Then, the script would then read the name from stdin, rather than the
> command line.
>
> while read name
> do
> # The "real work" goes here.
> done
>
> --
> 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/a72ba890/attachment.html
More information about the Filepro-list
mailing list