Posts

Showing posts with the label command-line-interface

Create cronjob with Zend Framework

Create cronjob with Zend Framework I am trying to write a cronjob controller, so I can call one website and have all modules cronjob.php executed. Now my problem is how do I do that? Would curl be an option, so I also can count the errors and successes? [Update] I guess I have not explained it enough. What I want to do is have one file which I can call like from http://server/cronjob and then make it execute every /application/modules/*/controller/CronjobController.php or have another way of doing it so all the cronjobs aren't at one place but at the same place the module is located. This would offer me the advantage, that if a module does not exist it does not try to run its cronjob. Now my question is how would you execute all the modules CronjobController or would you do it a completly different way so it still stays modular? And I want to be able to giveout how many cronjobs ran successfully and how many didn't 13 Answers ...

Are there any command-line browsers which can execute javascript on the DOM and also execute javascript on that DOM (interactive console)?

Are there any command-line browsers which can execute javascript on the DOM and also execute javascript on that DOM (interactive console)? I'm looking for a command line browser or web browser command-line interface (headless/gui-less option) that can be run in a terminal (preferably linux/bash) which loads the DOM and received javascript, and then allows for console execution of javascript on the loaded DOM. The goal is to operate on the DOM through the console. I'm not looking for CLI-based page downloading, stand-alone js execution or load a js page from CLI. Links and Lynx both explicitly do not support javascript (at least according to those wikipedia pages). Are there any command-line-based or very-very-lightweight we browsers that I could use [preferably through linux/bash (Ubuntu/Mac OS X)] to operate on the browser DOM with javascript support using an interactive console or locally-sourced javascript code? Could you append a <script> ...