Differences between revisions 1 and 3 (spanning 2 versions)
Revision 1 as of 2014-01-01 19:48:49
Size: 205
Editor: techtonik
Comment: add libraries that help to execute shell commands
Revision 3 as of 2014-08-06 11:53:49
Size: 708
Editor: techtonik
Comment: redirect to source code
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
Page status - development of a library (public domain) to run commands through shell is moved to https://bitbucket.org/techtonik/shellrun along with detailed notes, because it is easier to sync notes with code in repository.
Line 7: Line 9:

  TODO

===== API Comparison =====
Running:
{{{
r = envoy.run('command')

r = shell_command.shell_call('command')

}}}

Return code, https://en.wikipedia.org/wiki/Exit_status
{{{
# subprocess
p.returncode

# envoy
r.status_code

# shell_command
r
}}}

Page status - development of a library (public domain) to run commands through shell is moved to https://bitbucket.org/techtonik/shellrun along with detailed notes, because it is easier to sync notes with code in repository.

Libraries to run command through system shell, because subprocess suxx:

subprocess deadlock example:

  • TODO

API Comparison

Running:

r = envoy.run('command')

r = shell_command.shell_call('command')

Return code, https://en.wikipedia.org/wiki/Exit_status

# subprocess
p.returncode

# envoy
r.status_code

# shell_command
r

ShellRun (last edited 2014-08-06 11:53:49 by techtonik)

Unable to edit the page? See the FrontPage for instructions.