Stanley,<div><br></div><div>USER commands can seem to be a strange animal when you first start to use them.</div><div><br></div><div>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.</div><div><br></div><div>As I said, this is in very simple terms!</div><div><br></div><div>Ken<span></span><br><br>On Tuesday, 6 September 2016, Jose Lerebours via Filepro-list <<a href="mailto:filepro-list@lists.celestial.com">filepro-list@lists.celestial.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 09/05/2016 11:50 PM, Stanley - <a href="http://stanlyn.com" target="_blank">stanlyn.com</a> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Jose,<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
|# date +"%H:%M:%S,%3N" |<br>
</blockquote>
Are you saying there is no filepro function for this and I must do a system<br>
call to get it? If so, then how would I use filepro to do math on the<br>
return values?<br>
<br>
<br>
</blockquote>
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.<br>
<br>
What kind of math are you talking about?<br>
<br>
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.<br>
<br>
|wget -qO- <a href="http://www.timeapi.org/utc/now" target="_blank">http://www.timeapi.org/utc/now</a><wbr>?\\s.\\N<br>
<br>
or<br>
<br>
|<br>
|php -r 'echo microtime(TRUE);'<br>
<br>
or<br>
<br>
|<br>
|python -c 'import time; print time.time()'<br>
<br>
or<br>
<br>
|<br>
|ruby -e 'puts Time.now.to_f'<br>
<br>
|<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://mailman.celestial.com/pipermail/filepro-list/attachments/20160906/d42a15dd/attachment.html" target="_blank">http://mailman.celestial.com/<wbr>pipermail/filepro-list/attachm<wbr>ents/20160906/d42a15dd/attachm<wbr>ent.html</a>><br>
______________________________<wbr>_________________<br>
Filepro-list mailing list<br>
<a>Filepro-list@lists.celestial.<wbr>com</a><br>
Subscribe/Unsubscribe/Subscrip<wbr>tion Changes<br>
<a href="http://mailman.celestial.com/mailman/listinfo/filepro-list" target="_blank">http://mailman.celestial.com/m<wbr>ailman/listinfo/filepro-list</a><br>
</blockquote></div>