System

From PyMOLWiki
Revision as of 20:38, 4 May 2010 by Cowsandmilk (talk | contribs) (→‎PYMOL API: correct arguments)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

The system command, executes a command in a subshell under Unix or Windows.

USAGE

# execute 'command'
system command

PYMOL API

cmd.system(string command,int async=0)

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

SEE ALSO

ls, cd, pwd