blob: bbf0c74cf5edb6e268025c6e99357103fd9c2024 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#!/bin/sh
SYSTEM=`uname -s`
DATE=`date +%Y-%m-%d`
TIME=`date +%H.%M.%S`
SCRIPT=`echo $0| sed 's|.*/\(.*\)|\1|g'`
LOGFILE=/home/pd/logs/${DATE}_${TIME}_-_${SCRIPT}_-_${SYSTEM}.txt
touch $LOGFILE
# extended
echo "------------------------------------------------------------" >> $LOGFILE 2>&1
echo "pd-extended" >> $LOGFILE 2>&1
echo "------------------------------------------------------------" >> $LOGFILE 2>&1
su pd -c "/home/pd/rsync/pd-extended/scripts/update-developer-layout.sh" \
>> $LOGFILE 2>&1
# devel
echo "------------------------------------------------------------" >> $LOGFILE 2>&1
echo "pd-devel" >> $LOGFILE 2>&1
echo "------------------------------------------------------------" >> $LOGFILE 2>&1
su pd -c "/home/pd/rsync/pd-devel/scripts/update-developer-layout.sh" \
>> $LOGFILE 2>&1
# main
echo "------------------------------------------------------------" >> $LOGFILE 2>&1
echo "pd-main" >> $LOGFILE 2>&1
echo "------------------------------------------------------------" >> $LOGFILE 2>&1
su pd -c "/home/pd/rsync/pd-main/scripts/update-developer-layout.sh" \
>> $LOGFILE 2>&1
|