This is a read-only mirror of pymolwiki.org
Difference between revisions of "System"
Jump to navigation
Jump to search
(copy from pymol help) |
(added category label) |
||
Line 1: | Line 1: | ||
===DESCRIPTION=== | ===DESCRIPTION=== | ||
− | |||
"system" executes a command in a subshell under Unix or Windows. | "system" executes a command in a subshell under Unix or Windows. | ||
===USAGE=== | ===USAGE=== | ||
− | |||
system command | system command | ||
===PYMOL API=== | ===PYMOL API=== | ||
− | |||
cmd.system(string command,int sync=1) | cmd.system(string command,int sync=1) | ||
===NOTES=== | ===NOTES=== | ||
− | |||
async can only be specified from the Python level (not the command language) | async can only be specified from the Python level (not the command language) | ||
*if async is 0 (default), then the result code from "system" is returned in r | *if async is 0 (default), then the result code from "system" is returned in r | ||
Line 18: | Line 14: | ||
===SEE ALSO=== | ===SEE ALSO=== | ||
+ | [[ls]], [[cd]], [[pwd]] | ||
− | [[ | + | [[Category:Commands|system]] |
Revision as of 19:55, 5 June 2006
DESCRIPTION
"system" executes a command in a subshell under Unix or Windows.
USAGE
system command
PYMOL API
cmd.system(string command,int sync=1)
NOTES
async can only be specified from the Python level (not the command language)
- if async is 0 (default), then the result code from "system" is returned in r
- if async is 1, then the command is run in a separate thread whose object is returned