/ 雑記帳

稼働PC識別記号

稼働PC識別記号をTOPページに入れました。
i915 or i855どちらかになるはずです。

— posted by 管理人 at 11:49 pm   commentComment [0]  pingTrackBack [0]

 

phpで書ければいいのに

$ /usr/local/bin/reclist.utf-8
1 2006-09-10 03:45:00 2006-09-10 03:50:00 -1 : ゆめオルゴール
23 2006-09-10 08:00:00 2006-09-10 08:30:00 -1 : 仮面ライダーカブト
44 2006-09-11 13:30:00 2006-09-11 14:00:00 -1 : がきんちょ・リターン・キッズ
44 2006-09-12 13:30:00 2006-09-12 14:00:00 4 : がきんちょ・リターン・キッズ
44 2006-09-13 13:30:00 2006-09-13 14:00:00 4 : がきんちょ・リターン・キッズ
44 2006-09-14 13:30:00 2006-09-14 14:00:00 4 : がきんちょ・リターン・キッズ
23 2006-09-15 00:45:00 2006-09-15 01:15:00 -1 : カーグラフィックTV
44 2006-09-15 13:30:00 2006-09-15 14:00:00 4 : がきんちょ・リターン・キッズ


$ ./timecalc '13:45:00' '00:23'
14:08:00


------------------------------------------------------------------------------


#1分前に電源ON

/usr/local/bin/reclist.utf-8 | sed "s/^ //g" | sed "s/^ //g" | grep ^[0-1] | awk '{print $3}' | ¥
sed "s/^/¥/usr¥/local¥/bin¥/timecalc- /g" | sed "s/ / '/g" | sed "s/$/'/" | sed "s/$/ 1/" > p1
chmod +x p1
./p1 | awk -F":" '{print $1,$2}' | sed "s/ /:/g" | ¥
sed "s/^/echo ¥/home¥/kkuma¥/HDH3¥/ON-OFF¥/BSTUNER-ON-OFF | at /g" > p2
/usr/local/bin/reclist.utf-8 | sed "s/^ //g" | sed "s/^ //g" | grep ^[0-1] | awk '{print $2}' > p3
paste -d" " p2 p3 > p4
cat ./p4
chmod +x ./p4
./p4

#1分後に電源OFF

/usr/local/bin/reclist.utf-8 | sed "s/^ //g" | sed "s/^ //g" | grep ^[0-1] | awk '{print $5}' | ¥
sed "s/^/¥/usr¥/local¥/bin¥/timecalc+ /g" | sed "s/ / '/g" | sed "s/$/'/" | sed "s/$/ 1/" > q1
chmod +x q1
./q1 | awk -F":" '{print $1,$2}' | sed "s/ /:/g" | ¥
sed "s/^/echo ¥/home¥/kkuma¥/HDH3¥/ON-OFF¥/BSTUNER-ON-OFF | at /g" > q2
/usr/local/bin/reclist.utf-8 | sed "s/^ //g" | sed "s/^ //g" | grep ^[0-1] | awk '{print $4}' > q3
paste -d" " q2 q3 > q4
cat ./q4
chmod +x ./q4
./q4

#判定重複削除
cat ./p4 ./q4 |sort > r1
at -l | awk '{print $3,$2}' | sed "s/^/echo ¥/home¥/kkuma¥/HDH3¥/ON-OFF¥/BSTUNER-ON-OFF | at /g" | sort > r2
diff r1 r2 | grep ^¥< | awk '{print $2,$3,$4,$5,$6}' > r3
cat r3
chmod +x r3
./r3

— posted by 管理人 at 12:15 am   commentComment [1]  pingTrackBack [0]

<< 2006.9 >>
SMTWTFS
     12
3 456 789
10 111213141516
1718192021 2223
2425 2627 282930
 










T: Y: ALL: Online:
ThemePanel
Created in 0.0094 sec.