Milliseconds Resolution
Fairlight
fairlite at fairlite.com
Mon Sep 5 21:49:30 PDT 2016
Which simplicity neglects a few of the gotchas, such as needing the command
to -not- be variable in nature. I recall that being a limitation.
You also don't -need- to feed it input, unless it needs input. If it's
just getting a timestamp, that's a single read and then close the alias.
USER is a bit odd though, yeah.
m->
On Tue, Sep 06, 2016 at 02:37:16PM +1000, Ken Cole via Filepro-list thus spoke:
> Stanley,
>
> USER commands can seem to be a strange animal when you first start to use
> them.
>
> On very simple terms write a script that runs in a loop, waits for input,
> sent from filePro, and then sends output, read by filePro and it runs until
> you send it an input that triggers into stop or your filePro processing
> ends which in turn stops the user program.
>
> As I said, this is in very simple terms!
>
> Ken
>
> On Tuesday, 6 September 2016, Jose Lerebours via Filepro-list <
> filepro-list at lists.celestial.com> wrote:
>
> > On 09/05/2016 11:50 PM, Stanley - stanlyn.com wrote:
> >
> >> Hi Jose,
> >>
> >> |# date +"%H:%M:%S,%3N" |
> >>>
> >> Are you saying there is no filepro function for this and I must do a
> >> system
> >> call to get it? If so, then how would I use filepro to do math on the
> >> return values?
> >>
> >>
> >> Yeah, if you want to do math as precise as that, you may want to look at
> > using epoch time stamps. Like Mark said in his earlier post, I am not
> > aware of a function in filePro that would do it.
> >
> > What kind of math are you talking about?
> >
> > Going back to Mark's post, you may want to look at Perl (although I am a
> > PHP guy myself) and write a script to handle the task and return the value
> > you seek. filePro has a command known as "user" which can be used in
> > combination with your script to get the desired results.
> >
> > |wget -qO- http://www.timeapi.org/utc/now?\\s.\\N
> >
> > or
> >
> > |
> > |php -r 'echo microtime(TRUE);'
> >
> > or
> >
> > |
> > |python -c 'import time; print time.time()'
> >
> > or
> >
> > |
> > |ruby -e 'puts Time.now.to_f'
> >
> > |
> > -------------- next part --------------
> > An HTML attachment was scrubbed...
> > URL: <http://mailman.celestial.com/pipermail/filepro-list/attachm
> > ents/20160906/d42a15dd/attachment.html>
> > _______________________________________________
> > 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/20160906/395d9001/attachment.html>
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> Subscribe/Unsubscribe/Subscription Changes
> http://mailman.celestial.com/mailman/listinfo/filepro-list
>
--
Audio panton, cogito singularis.
More information about the Filepro-list
mailing list