Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports
Path: blob/main/cad/astk-serveur/files/patch-asrun_system__command.py
18157 views
1
--- asrun/system_command.py.orig 2017-07-13 07:40:52 UTC
2
+++ asrun/system_command.py
3
@@ -21,9 +21,9 @@
4
This module defines syntaxes to run command lines.
5
"""
6
7
-from asrun.common.sysutils import on_linux
8
+from asrun.common.sysutils import on_windows
9
10
-if on_linux():
11
+if not on_windows():
12
COMMAND = {
13
'foreground' : '( %(cmd)s ) > /dev/null 2>&1',
14
'background' : '( %(cmd)s ) > /dev/null 2>&1 &',
15
@@ -33,7 +33,7 @@ if on_linux():
16
'not_follow_separ_stderr' : '( %(cmd)s ) > %(output)s 2> %(error)s',
17
'rm_file' : '\\rm -f %(args)s',
18
'rm_dirs' : '\\rm -rf %(args)s',
19
- 'copy' : 'cp -L -r %(args)s',
20
+ 'copy' : 'cp -L -R %(args)s',
21
'ping' : 'ping -c 1 -W %(timeout)s %(host)s',
22
'shell_cmd' : "bash -c",
23
'file' : "file %(args)s",
24
25