關於 crontab 如果要跑到秒的話?? - Linux
By Oliver
at 2010-01-22T18:03
at 2010-01-22T18:03
Table of Contents
※ 引述《tas72732002 (蔥頭)》之銘言:
: 目前我已改成 crontab在23點59分讀取 sh檔
: sh檔內容為
: #!/bin/bash
: do
: sleep 58
: 執行PHP檔
: done
: 請問一下 sheel script 要如何執行php檔?? 感謝
Solutions 1
#!/usr/bin/php
<?
sleep(58);
.....
.....
.....
?>
Solutions 2
#!/bin/sh
sleep 58
/usr/bin/php -f xxxxxx
--
春花聞杜鵑,秋月看歸燕。人情薄似雲,風景疾如箭。
留下買花錢,趲入種桑園。茅苫三間廈,秧肥數頃田。
床邊,放一冊冷淡淵明傳;窗前,鈔幾聯清新杜甫篇。 ~WolfLord~
--
: 目前我已改成 crontab在23點59分讀取 sh檔
: sh檔內容為
: #!/bin/bash
: do
: sleep 58
: 執行PHP檔
: done
: 請問一下 sheel script 要如何執行php檔?? 感謝
Solutions 1
#!/usr/bin/php
<?
sleep(58);
.....
.....
.....
?>
Solutions 2
#!/bin/sh
sleep 58
/usr/bin/php -f xxxxxx
--
春花聞杜鵑,秋月看歸燕。人情薄似雲,風景疾如箭。
留下買花錢,趲入種桑園。茅苫三間廈,秧肥數頃田。
床邊,放一冊冷淡淵明傳;窗前,鈔幾聯清新杜甫篇。 ~WolfLord~
--
Tags:
Linux
All Comments
Related Posts
在Linux環境中建立GRE Tunnel
By Charlotte
at 2010-01-22T14:29
at 2010-01-22T14:29
Git使用問題
By Caitlin
at 2010-01-22T13:52
at 2010-01-22T13:52
Git使用問題
By Annie
at 2010-01-22T13:19
at 2010-01-22T13:19
在linux玩 Enemy Territory
By Jacky
at 2010-01-22T13:05
at 2010-01-22T13:05
字串的分解
By Sarah
at 2010-01-22T12:53
at 2010-01-22T12:53