Path: blob/main/cad/astk-serveur/files/patch-asrun_system__command.py
16461 views
--- asrun/system_command.py.orig 2017-07-13 07:40:52 UTC1+++ asrun/system_command.py2@@ -21,9 +21,9 @@3This module defines syntaxes to run command lines.4"""56-from asrun.common.sysutils import on_linux7+from asrun.common.sysutils import on_windows89-if on_linux():10+if not on_windows():11COMMAND = {12'foreground' : '( %(cmd)s ) > /dev/null 2>&1',13'background' : '( %(cmd)s ) > /dev/null 2>&1 &',14@@ -33,7 +33,7 @@ if on_linux():15'not_follow_separ_stderr' : '( %(cmd)s ) > %(output)s 2> %(error)s',16'rm_file' : '\\rm -f %(args)s',17'rm_dirs' : '\\rm -rf %(args)s',18- 'copy' : 'cp -L -r %(args)s',19+ 'copy' : 'cp -L -R %(args)s',20'ping' : 'ping -c 1 -W %(timeout)s %(host)s',21'shell_cmd' : "bash -c",22'file' : "file %(args)s",232425