in reply to File problems
Fortunately for you, you can replace this whole function with a single system() call:
system("ls /dir/error* >/tmp/err_list 2>/dev/null");
The "2>/dev/null" makes sure that any error messages from the 'ls' program won't be visible to the person running your code.
-- Chip Salzenberg, Free-Floating Agent of Chaos
|
|---|