久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    • <bdo id='434te'></bdo><ul id='434te'></ul>
      <i id='434te'><tr id='434te'><dt id='434te'><q id='434te'><span id='434te'><b id='434te'><form id='434te'><ins id='434te'></ins><ul id='434te'></ul><sub id='434te'></sub></form><legend id='434te'></legend><bdo id='434te'><pre id='434te'><center id='434te'></center></pre></bdo></b><th id='434te'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='434te'><tfoot id='434te'></tfoot><dl id='434te'><fieldset id='434te'></fieldset></dl></div>

        <legend id='434te'><style id='434te'><dir id='434te'><q id='434te'></q></dir></style></legend>
      1. <tfoot id='434te'></tfoot>

        <small id='434te'></small><noframes id='434te'>

        如何在 Mac OS X 上執行 PHP shell 腳本作為 Automator

        How do I execute a PHP shell script as an Automator action on Mac OS X(如何在 Mac OS X 上執行 PHP shell 腳本作為 Automator 操作)

            <i id='LqGZZ'><tr id='LqGZZ'><dt id='LqGZZ'><q id='LqGZZ'><span id='LqGZZ'><b id='LqGZZ'><form id='LqGZZ'><ins id='LqGZZ'></ins><ul id='LqGZZ'></ul><sub id='LqGZZ'></sub></form><legend id='LqGZZ'></legend><bdo id='LqGZZ'><pre id='LqGZZ'><center id='LqGZZ'></center></pre></bdo></b><th id='LqGZZ'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='LqGZZ'><tfoot id='LqGZZ'></tfoot><dl id='LqGZZ'><fieldset id='LqGZZ'></fieldset></dl></div>

            <small id='LqGZZ'></small><noframes id='LqGZZ'>

                <tbody id='LqGZZ'></tbody>

                <tfoot id='LqGZZ'></tfoot>

              • <legend id='LqGZZ'><style id='LqGZZ'><dir id='LqGZZ'><q id='LqGZZ'></q></dir></style></legend>
                  <bdo id='LqGZZ'></bdo><ul id='LqGZZ'></ul>
                • 本文介紹了如何在 Mac OS X 上執行 PHP shell 腳本作為 Automator 操作的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我被 Automator.app 在 Mac OS X Snow Leopard 中創建上下文服務的能力所吸引.我想創建一些鍵盤可訪問的快捷方式來通過調用 shell 腳本來操作文本片段.但是,Automator 只建議使用 bash、Perl、Python 和 Ruby(以及其他)來實現這一點.但是,由于 PHP 也隨 Mac OS 一起提供(老實說,它是我唯一完全掌握的腳本語言),我想知道為什么我不能運行 PHP shell 腳本.

                  I'm tempted by Automator.app's ability to create contextual services in Mac OS X Snow Leopard. I would like to create some keyboard accessible shortcuts to manipulate text snippets by calling a shell script. However, Automator only suggests bash, Perl, Python and Ruby (among others) to allow this. But, since PHP also ships with Mac OS (and, to be honest, it's the only scripting language I fully master), I wonder why I can't run a PHP shell script.

                  推薦答案

                  上面dbr的解決方案很好,但是我發現它對我不起作用,可能是由于后來更改了shell、php或OS版本(我使用的是 OS X 10.8).經過大量的撓頭,我發現答案是引用heredoc標記.

                  dbr's solution above is excellent, but I found that it didn't work for me, perhaps due to a later change in the shell, php, or OS version (I'm using OS X 10.8). After a lot of head-scratching I found that the answer is to quote the heredoc marker.

                  一個有用的補充是使用適當的語法將參數傳遞給 php 腳本.將所有這些放在一起,我正在使用:

                  A useful addition is to use the appropriate syntax to pass the arguments through to the php script. Putting all that together, I'm using:

                  php -- "$@" <<'EOF'
                  <?php 
                  print_r( $argv );
                  ?>
                  EOF
                  

                  這篇關于如何在 Mac OS X 上執行 PHP shell 腳本作為 Automator 操作的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Deadlock exception code for PHP, MySQL PDOException?(PHP、MySQL PDOException 的死鎖異常代碼?)
                  PHP PDO MySQL scrollable cursor doesn#39;t work(PHP PDO MySQL 可滾動游標不起作用)
                  PHP PDO ODBC connection(PHP PDO ODBC 連接)
                  Using PDO::FETCH_CLASS with Magic Methods(使用 PDO::FETCH_CLASS 和魔術方法)
                  php pdo get only one value from mysql; value that equals to variable(php pdo 只從 mysql 獲取一個值;等于變量的值)
                  MSSQL PDO could not find driver(MSSQL PDO 找不到驅動程序)

                      • <bdo id='eheiB'></bdo><ul id='eheiB'></ul>

                          <legend id='eheiB'><style id='eheiB'><dir id='eheiB'><q id='eheiB'></q></dir></style></legend>
                          <i id='eheiB'><tr id='eheiB'><dt id='eheiB'><q id='eheiB'><span id='eheiB'><b id='eheiB'><form id='eheiB'><ins id='eheiB'></ins><ul id='eheiB'></ul><sub id='eheiB'></sub></form><legend id='eheiB'></legend><bdo id='eheiB'><pre id='eheiB'><center id='eheiB'></center></pre></bdo></b><th id='eheiB'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='eheiB'><tfoot id='eheiB'></tfoot><dl id='eheiB'><fieldset id='eheiB'></fieldset></dl></div>
                            <tbody id='eheiB'></tbody>
                            <tfoot id='eheiB'></tfoot>

                            <small id='eheiB'></small><noframes id='eheiB'>

                          1. 主站蜘蛛池模板: 国产精品福利久久久 | 久久亚洲一区二区三区四区 | 天天搞天天操 | 国产成人免费 | 中文字幕日韩一区 | 成人在线国产 | 91精品久久久久久久 | 亚洲国产精品一区二区久久 | 亚洲精品一区二区在线观看 | 免费黄色网址视频 | 中文字幕日韩欧美 | 最新国产精品 | 久久一区二区三区四区五区 | 91 视频网站| 自拍偷拍中文字幕 | 成人在线免费观看av | 一区二区三区小视频 | 狠狠婷婷综合久久久久久妖精 | 国产电影一区二区 | 高清av在线 | 欧美精品一区二区在线观看 | 国产毛片毛片 | 亚洲444kkkk在线观看最新 | 久久久精品影院 | 久久久久国产一区二区三区四区 | 在线欧美一区 | 一区二区在线 | 国产精品一二三区 | 久久久久久久国产精品影院 | 亚洲国产成人精品女人久久久 | www.精品一区 | 久久精品中文 | 日韩久久久久久 | 亚洲毛片一区二区 | 视频1区2区| 亚洲成网| 91精品国产乱码久久久久久 | 一级毛片视频 | www.国产精 | 91热在线 | 国产aⅴ精品 |