blob: d99992caa45ce7cd13381cf668628e993ca13f0d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/bin/bash
function main()
{
echo "start:`date +%T`"
time fileop -f $FILEOP_CNT -t 2>>$LOG_FILE 1>>$LOG_FILE
#in this example it creates 2 directories.In each directory 2 subdirectories are created and in each subdirectory 2 files are created.
if [ $? -ne 0 ]; then
echo "end:`date +%T`"
return 11;
else
echo "end:`date +%T`"
return 0;
fi
}
main "$@";
|