filePro/email from Unix script file

Kenneth Brody kenbrody at bestweb.net
Wed Dec 14 12:57:47 PST 2005


Quoting Butch Ammon (Wed, 14 Dec 2005 15:01:52 EST):

> Good afternoon,
>
> I am trying to help my Minneapolis office (Super Radiator Coils) with an
> idea they have with filePro on SCO Unix.  I made a real simple script
> file for them to run a filePro report to a /tmp file.  Then immediately
> email the /tmp file.
>
> But... what happens when the filePro report runs and doesn't happen to
> select any records?  The script file continues and emails a blank report!
>
> Is there a quick way to kill the script file when the records selected
> is "0"?
[...]

Check if the file is zero length (test -s filename) and don't send
the e-mail if so.

Or, have filePro send the e-mail from @DONE if @TS isn't "0".

--
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