SYSTEM command
Kenneth Brody
kenbrody at bestweb.net
Fri Nov 19 13:28:28 PST 2004
Steven Waters wrote:
>
> SCO UNIX 5.0.6 Filepro 5
> I am not sure if this can be done.
> I need to know when to purge a directory of files.
> I use this at the command prompt;
> # l > list
> # wc -l < list
> 481
> I have 481 files in the directory. Lets say that when the directory
> reaches 500 I want Filepro to tell me to purge it.
> is it possible to get the result back , like a dummy field
> to your output processing system command?
[...]
In this case, you can use OPENDIR/CLOSEDIR to get the number of files
in a directory.
--
+-------------------------+--------------------+-----------------------------+
| Kenneth J. Brody | www.hvcomputer.com | |
| kenbrody/at\spamcop.net | www.fptech.com | #include <std_disclaimer.h> |
+-------------------------+--------------------+-----------------------------+
Don't e-mail me at: <mailto:ThisIsASpamTrap at gmail.com>
More information about the Filepro-list
mailing list