今天設計了新的java參數讓cronjob跑, 發現cronjob沒有再跑, 後來上網查了發現 是 % 這個符號的關係, 這符號的意思是換行,所以這符號後面的參數我的jar檔就吃不到啦~ 引用 A <percent-sign> character in this field shall be translated to a <newline<. Any character preceded by a <backslash> (including the '%' ) shall cause that character to be treated literally. Only the first line (up to a '%' or end-of-line) of the command field shall be executed by the command interpreter. The other lines shall be made available to the command as standard input.
沒有留言:
張貼留言