Output Processing Running
Jeff Harrison
Jeff.Harrison at Epixweb.com
Fri Apr 30 06:22:00 PDT 2004
Bob Simcoe wrote:
>
> Hi
>
> Hope you can help.
>
> What's the best way to find out, within processing, if output
> processing is running on another file.
>
> Any help would be greatly appreciated.
>
> Thank you
>
I don't know what the best way to do this is. On Unix systems in the past I
have done the following system commands before entering processing:
if `ps -elf | egrep "file1|file2" | egrep "post1|post2" >/dev/null`
then
echo Sorry You cannot generate payroll while reports are re-printing
echo Press enter to continue
PRINTLOCK="YES"; export PRINTLOCK
read dummy
fi
I suppose you can do a user command from within processing to do the same
thing.
Another way to approach this would be to read the lockfile with the raw io
functions. However, I don't like to rely on that since it is possible for
that to get out of synch.
Jeff Harrison
jeff.harrison at epixweb.com
Author of JHExport and JHImport - The fastest and easiest ways to generate
code for filepro exports and imports. Demos available upon request.
More information about the Filepro-list
mailing list