Shell

shell: exec, system, shell_exec, passthrough

September 12, 2011
By

What’s the difference? Here’s a great explanation: http://chipmunkninja.com/Program-Execution-in-PHP%3A-exec-m@ Program Execution in PHP: exec, system, passthru, and shell_exec, oh my! By marcwan PHP is a sufficiently rich programming environment that it is not common that I truly need to execute external programs on the server on which it executes. However, every once in a while,...

Read more »

php: shell, run another program thru cmd.exe

September 12, 2011
By

shell_exec() not working on Windows Posted By: Nick May 06, 2007 23:03:28 My shell_exec works just find… if I want to copy, move, or delete files. Oh, and I can change my directories just fine. But how to I initiate a program? I am using PHP on a web server. It is my intention...

Read more »

shell: text to speech

September 12, 2011
By

Using 2nd speech center: http://www.zero2000.com Advanced Usage – Command Lines USAGE: ttscmd … : Required, : Optional EXAMPLES: Base text to speech without switches: ======================== ttscmd /tts “The text you want to listen to” ttscmd /tts input.txt ttscmd /tts input.doc ttscmd /tts input.pdf ttscmd /tts input.eml ttscmd /tts input.html Convert text to wave...

Read more »

shell: image ocr open source

September 12, 2011
By

Here is an open source image ocr recognizer: Tesseract http://code.google.com/p/tesseract-ocr/ http://code.google.com/p/tesseract-ocr/wiki/ReadMe The windows set up from exe: http://code.google.com/p/tesseract-ocr/downloads/detail?name=tesseract-ocr-setup-3.00.exe google group: http://groups.google.com/group/tesseract-ocr?hl=en other languages: http://code.google.com/p/tesseract-ocr/downloads/list?can=1&q=language+data+2.00&colspec=Filename+Summary+Uploaded+ReleaseDate+Size+DownloadCount Here is an implementation of this: http://code.google.com/p/tesseract-ocr/ http://www.paperfile.net/ Implementing it in php: Need to convert images to .tif first: (using imagemagick): convert -density 150 -depth 8 -colorspace gray -verbose pic32.PDF...

Read more »

August 31, 2011
By

From php manual: http://php.net/manual/en/function.shell-exec.php If you are using a Windows server with IIS, and you try to execute a batch file with shell_exec() function, or his related functions you should do it like this: Note the parameter /c which says “Carries out the ommand specified by string and then terminates” If you don’t add...

Read more »

php/Shell: How to run a php script in the background

August 31, 2011
By

This was taken form php manual: http://php.net/manual/en/function.shell-exec.php After many failed attempts to find a way to run a php script in the background (the script had to be activated from a web browser). Since I create and test my scripts on a windows box, I need an automatic way to detect if the script...

Read more »

Shell script: Catch weasel words

August 31, 2011
By

There is a good article about using Shell scripting to find “weasel words” inside a file: http://matt.might.net/articles/shell-scripts-for-passive-voice-weasel-words-duplicates/

Read more »