關於 crontab 如果要跑到秒的話?? - Linux

Oliver avatar
By Oliver
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~

--
Tags: Linux

All Comments

在Linux環境中建立GRE Tunnel

Charlotte avatar
By Charlotte
at 2010-01-22T14:29
Dear 鄉民s 第二次分享技術小經驗 最簡單的方式建立VPN Tunnel 主要可以應用在多個點的時候,如果想要用private IP直接溝通 或存取內部網路資源~可以這樣做噢~ http://0rz.tw/mTJ4f 如果要玩玩~~~建議先用lab環境噢^^ 在production上玩風險有 ...

Git使用問題

Caitlin avatar
By Caitlin
at 2010-01-22T13:52
※ 引述《final01 (牛頓運動定律)》之銘言: : 想請問一下例如:http://gitorious.org/usb/usb : 有很多branch : 要怎麼下載裏面的branch呢?? : 我想要用git下載(這網頁好像可以幫你打包) : 感覺git未免太複雜了吧 : 感謝!! git clone ...

Git使用問題

Annie avatar
By Annie
at 2010-01-22T13:19
想請問一下例如:http://gitorious.org/usb/usb 有很多branch 要怎麼下載裏面的branch呢?? 我想要用git下載(這網頁好像可以幫你打包) 感覺git未免太複雜了吧 感謝!! -- - ...

在linux玩 Enemy Territory

Jacky avatar
By Jacky
at 2010-01-22T13:05
今天下了Enemy territory v2.55 在安裝的時候 它要我輸入密碼 我輸入了密碼後 它卻不讓我安裝 還跑出了驗證失敗這四個字 這是為什麼呢 ? -- 吼~ ◣ ◢ 傳說只要拔到美洲獅的鬃毛 ˋ新ˊ ◣◢ ...

字串的分解

Sarah avatar
By Sarah
at 2010-01-22T12:53
※ 引述《eai ()》之銘言: : 假如我有一個字串 : TMP=01:02:AF:BB:30:21 : 最後想分解成 : VAR1=01 : VAR2=02 : : : VAR6=21 : 目前止想得到幾種方式 : 第一種 : TMP=01:02:AF:BB:30:21 : VAR1=`echo $ ...