奥井です
さくさん、Naitoさん、大久保さんご返答有り難うございました。
exportするのは辞めてファイルに書き出す事にしました。
これでアプリケーションからも動作可能になりました。
有り難うございました。
動作したスクリプト
#!/bin/sh
current_time=`date +%s`
echo $current_time
echo `cat next_alarm_time`
#if [ $current_time -gt $next_alarm_time ]
if [ $current_time -gt `cat ~/next_alarm_time` ]
then
play /usr/share/sounds/phone.wav #1分以上
echo $((current_time+60)) > ~/next_alarm_time
echo $current_time
echo `cat next_alarm_time`
fi
References:
- [vine-users:056044] スクリプトのエラーokui
- [vine-users:056046] Re: スクリプトのエラーOZAWA -Crouton- Sakuro
- Prev by Subject: [vine-users:056055] Re: 午前4時のcrontab
- Next by Subject: [vine-users:056057] Xconfigurator Segmentation fault (Vine-2.6)
- Previous by thread: [vine-users:056048] Re: スクリプトのエラー
- Next by thread: [vine-users:056049] Re: スクリプトのエラー
- Indexes:[Main][Thread]