monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

check directories and files with wildcard names


From: Tiago Almeida
Subject: check directories and files with wildcard names
Date: Wed, 20 May 2015 17:11:05 +0100

Hi,

is there anyway i could check the user owner for wildcard name directories our files ?
From what i've read so far this can be only done one by one.


Ex:
check directory DIR path /path/to/dir/*/uploads
if failed uid USER then  exec "/bin/bash -c 'chown -R USER.  /path/to/dir/*/uploads'"

Regards



reply via email to

[Prev in Thread] Current Thread [Next in Thread]