| author | "Tomas Zeman <tzeman@volny.cz>" |
| Wed, 21 Jul 2010 12:03:07 +0200 | |
| changeset 5 | 572c5066aa57 |
| parent 1 | 29afbe10f498 |
| child 7 | 0cd47f29bdfb |
| permissions | -rw-r--r-- |
|
1
29afbe10f498
Added base checks fs, fbsd, mysql
"Tomas Zeman <tzeman@volny.cz>"
parents:
diff
changeset
|
1 |
# Filesystem related parameters |
|
29afbe10f498
Added base checks fs, fbsd, mysql
"Tomas Zeman <tzeman@volny.cz>"
parents:
diff
changeset
|
2 |
|
|
29afbe10f498
Added base checks fs, fbsd, mysql
"Tomas Zeman <tzeman@volny.cz>"
parents:
diff
changeset
|
3 |
# Returns age of last modification time of file $1 |
|
29afbe10f498
Added base checks fs, fbsd, mysql
"Tomas Zeman <tzeman@volny.cz>"
parents:
diff
changeset
|
4 |
UserParameter=file.age[*],expr `date +%s` - `stat -f %m $1` |
|
29afbe10f498
Added base checks fs, fbsd, mysql
"Tomas Zeman <tzeman@volny.cz>"
parents:
diff
changeset
|
5 |
|
|
29afbe10f498
Added base checks fs, fbsd, mysql
"Tomas Zeman <tzeman@volny.cz>"
parents:
diff
changeset
|
6 |
# Returns count of files in directory $1 |
|
29afbe10f498
Added base checks fs, fbsd, mysql
"Tomas Zeman <tzeman@volny.cz>"
parents:
diff
changeset
|
7 |
UserParameter=dir.files[*],ls $1|wc -l |
|
29afbe10f498
Added base checks fs, fbsd, mysql
"Tomas Zeman <tzeman@volny.cz>"
parents:
diff
changeset
|
8 |