Source

popen /

Filename Size Date modified Message
src
test
101 B
94 B
227 B
1.1 KB
179 B
226 B

popen

About

popen is a subprocess library for Clojure.

Usage

(popen ["ls" "-a" "/tmp"] :redirect false :dir nil :env {})
Open a child process. Optional parameters are redirect to redirect stderr to stdout, dir to start with a different working directory and env to pass additional environment variables as a map. Returns the process object.
(popen* ["ls" "-a" "/tmp"] :redirect false :dir nil :env {})
Same as popen, returns the process stdout stream.
(stdout process)
Return the standard output of the process (for reading).
(stderr process)
Return the standard error of the process (for reading).
(stdin process)
Return the standard input of the process (for writing).
(join process)
Wait for process termination, return exit code.
(exit-code process)
Return the exit code of the process, will wait for termination.
(running? process)
Return true if process still running.
(kill process)
Kills (terminates) the process.

License

Copyright (C) 2013 Miki Tebeka <miki.tebeka@gmail.com>

Distributed under the Eclipse Public License, the same as Clojure.

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.