3
我試圖生成一個文檔減價每90秒我已經建立了一個任務的launchd來處理這對於PDF文檔。不幸的是,我得到一個錯誤,宣佈即使我可以從命令行調用它,也找不到pdflatex,下面是ddd_publisher.sh的全部內容,它是每90秒啓動一次的文件:pandoc - 收到錯誤:「pdflatex沒有找到需要的PDF輸出pdflatex
/usr/local/bin/pandoc -o /Users/Jon/dev/intercontinental/ddd.pdf /Users/Jon/dev/intercontinental/ddd.ddd
該方案每90秒運行一次,但它下面的行寫至標準錯誤:
pandoc: pdflatex not found. pdflatex is needed for pdf output.
如果我在它告訴我的命令行,它是安裝型pdflatex -v
:
pdfTeX 3.1415926-2.4-1.40.13 (TeX Live 2012)
這裏是我的launchd plist文件:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>ddd.intercontinental.publisher</string>
<key>ProgramArguments</key>
<array>
<string>/Users/Jon/dev/intercontinental/ddd_publisher.sh</string>
</array>
<key>StandardErrorPath</key>
<string>/Users/Jon/dev/intercontinental/ddd.stderr</string>
<key>StandardOutPath</key>
<string>/Users/Jon/dev/intercontinental/ddd.stdout</string>
<key>StartInterval</key>
<integer>90</integer>