user command

Kenneth Brody kenbrody at bestweb.net
Tue Sep 19 11:46:01 PDT 2006


Quoting Richard D. Williams (Tue, 19 Sep 2006 12:58:03 -0500):

> Linux, FP 5.14

I assume you mean "5.0.14"?

> I am trying to get a unique number by executing this script called
> uniqueid:
>
> temp_file="/tmp/$$"
> echo $temp_file

Well, just a note that 5.6 has a GETPID() function that you could
use for this.

> This is my result from the command line:
> # uniqueid
> /tmp/23124
> #
>
> My filepro user command syntax is:
>
> uniq = /usr/local/bin/uniqueid

I assume you mean:

    user uniq = /usr/local/bin/uniqueid

> ha=uniq
> msgbox ha
>
> This is my result from filepro @key:
>
>
ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
> ³
> ?[24;70H?[m?[m?[2J?[H?[m?[2J?[H?[1;1H?[m?[2J?[H?[1;1H
> ³
> ³
> ³
> ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ Press
> Enter   Ù
>
> (the graphics did not cut and paste very well, but you get the idea.)
>
> Any suggestions as to what I am doing wrong?

It looks like your script is outputting more than just the filename,
but also some ANSI Escape sequence.

Try this from the command line:

    /bin/sh -c /usr/local/bin/uniqueid | cat -v

--
KenBrody at BestWeb dot net        spamtrap: <g8ymh8uf001 at sneakemail.com>
http://www.hvcomputer.com
http://www.fileProPlus.com


More information about the Filepro-list mailing list