Export a Unix variable named File.
Kenneth Brody
kenbrody at bestweb.net
Tue Aug 1 16:28:41 PDT 2006
Quoting George (Tue, 1 Aug 2006 15:22:30 -0700):
[...]
> Thanks for the replies.
>
> What kind of fp environmental variable can I set to have getenv "file"
> provide a unique file name on every invocation? This simple export may
> run at random times per hour.
>
> Using: export ascii exp=("/tmp/" { getenv("file")) r=\n f=, -x
>
> Now it just writes a /tmp/.wp on every run.
Well, both of your examples used "$file", so I assumed you already had
some environment variable that you were using. (After all, you did say
that "-p $file" on the command line worked.)
If you don't have an environment variable already set, then you can use
the current date and time (stripping the "/"s and ":"s), as long as
there won't be two exports run within a second of each other. (How
will "the other program", which is to import these files, know what
filename you used?)
--
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