search for: subprocess

Displaying 20 results from an estimated 609 matches for "subprocess".

2020 Jul 22
3
samba-tool domain backup offline stalls
...on dirs: /var/db/samba4/private /var/db/samba4 /usr/local/etc Starting transaction on /var/db/samba4/private/secrets At which point samba-tool enters a permanent wait state. 86064 root 1 52 0 131M 78M wait 3 0:01 0.00% python3.7 Trace shows this: . . . --- modulename: subprocess, funcname: __enter__ subprocess.py(845): return self subprocess.py(340): try: subprocess.py(341): return p.wait(timeout=timeout) --- modulename: subprocess, funcname: wait subprocess.py(1016): if timeout is not None: subprocess.py(1018): try: subprocess....
2018 Jan 15
5
glusterfs development library
I want to write a python script and visual interface to manage glusterfs, such as creating and deleting volumes.This can be easier to manage glusterfs? But,now ,I execute the glusterfs command using python's subprocess.popen function?such as subprocess.Popen(GLUSTER_CMD, shell=True,stdout=subprocess.PIPE, stderr=subprocess.PIPE)...... But this does not feel like a good program, Because it has a serious dependence on the shell Is there a python or c library/function to execute the glusterfs command?So I can develo...
2020 Jul 23
4
samba-tool domain backup offline stalls
...immediately before the point the offline script stalls is: --- modulename: os, funcname: fsencode os.py(812): filename = fspath(filename) # Does type-checking of `filename`. os.py(813): if isinstance(filename, str): os.py(814): return filename.encode(encoding, errors) subprocess.py(1466): if os.path.dirname(executable): --- modulename: posixpath, funcname: dirname posixpath.py(156): p = os.fspath(p) posixpath.py(157): sep = _get_sep(p) --- modulename: posixpath, funcname: _get_sep . . . --- modulename: subprocess, funcname: __enter__ subpro...
2018 Jan 15
0
glusterfs development library
...an 15, 2018 at 11:53 AM, ?? <mrchenx at 126.com> wrote: > I want to write a python script and visual interface to manage glusterfs, > such as creating and deleting volumes.This can be easier to manage > glusterfs? > But,now ,I execute the glusterfs command using python's > subprocess.popen function?such as subprocess.Popen(GLUSTER_CMD, > shell=True,stdout=subprocess.PIPE, stderr=subprocess.PIPE)...... > But this does not feel like a good program, Because it has a serious > dependence on the shell > Is there a python or c library/function to execute the glusterfs &gt...
2019 Oct 04
2
samba-tool user syncpasswords crashes with python3
...;/usr/local/samba/lib/python3.6/site- > > packages/samba/netcmd/user.py", line 2001, in run_sync_command > > reply = bytes(sync_command_p.communicate(input)[0], encoding = > > 'utf-8') > It seems to working up to here > > File "/usr/lib/python3.6/subprocess.py", line 863, in > > communicate > > stdout, stderr = self._communicate(input, endtime, timeout) > > File "/usr/lib/python3.6/subprocess.py", line 1519, in > > _communicate > > input_view = memoryview(self._input) > > Then it stops w...
2019 Jul 25
0
Re: [PATCH libnbd] api: New nbd_kill_command API for sending a signal to the command subprocess.
...sts/server-death.c can be simplified (no longer has to use --pidfile to learn where to send its kill); could be done on top. > + "kill_command", { > + default_call with > + args = [ Int "signal" ]; ret = RErr; > + shortdesc = "kill server running as a subprocess"; > + longdesc = "\ > +This call may be used to kill the server running as a subprocess > +that was previously created using C<nbd_connect_command>. You > +do not need to use this call. It is only needed if the server > +does not exit when the socket is closed. &...
2018 Jan 15
0
glusterfs development library
...Jan 15, 2018 at 2:53 AM, ?? <mrchenx at 126.com> wrote: > I want to write a python script and visual interface to manage glusterfs, > such as creating and deleting volumes.This can be easier to manage > glusterfs? > But,now ,I execute the glusterfs command using python's > subprocess.popen function?such as subprocess.Popen(GLUSTER_CMD, > shell=True,stdout=subprocess.PIPE, stderr=subprocess.PIPE)...... > But this does not feel like a good program, Because it has a serious > dependence on the shell > Is there a python or c library/function to execute the glusterfs &gt...
2018 Jan 15
1
glusterfs development library
...3 AM, ?? <mrchenx at 126.com> wrote: >> >> I want to write a python script and visual interface to manage glusterfs, >> such as creating and deleting volumes.This can be easier to manage >> glusterfs? >> But,now ,I execute the glusterfs command using python's subprocess.popen >> function?such as subprocess.Popen(GLUSTER_CMD, >> shell=True,stdout=subprocess.PIPE, stderr=subprocess.PIPE)...... >> But this does not feel like a good program, Because it has a serious >> dependence on the shell >> Is there a python or c library/function to...
2013 May 31
1
Can't provision with BIND9_DLZ
...nguid) File "/usr/local/samba/lib64/python2.7/site-packages/samba/provision/sambadns.py", line 805, in create_samdb_copy os.path.join(dns_dir, "sam.ldb")) File "/usr/local/samba/lib64/python2.7/site-packages/samba/tdb_util.py", line 36, in tdb_copy status = subprocess.call(tdbbackup_cmd, close_fds=True, shell=False) File "/usr/lib64/python2.7/subprocess.py", line 493, in call return Popen(*popenargs, **kwargs).wait() File "/usr/lib64/python2.7/subprocess.py", line 679, in __init__ errread, errwrite) File "/usr/lib64/python2...
2018 Sep 12
1
Bug 17432 in readLines with R >= 3.5.0 still a problem
...e for isatty(). An example R script and python script are provided to demonstrate the problem: R script (example.r): ================ f <- file("stdin") open(f) while(length(line <- readLines(f,n=1)) > 0) { write(line, stderr()) } Python3 script: ============ import sys, os, subprocess process = subprocess.Popen(['Rscript', 'example.r'], stdin=subprocess.PIPE, stdout=subprocess.PIPE) for line in sys.stdin: process.stdin.write((line + '\n').encode('utf-8')) process.stdin.flush() Expected Behaviour: Run python script, each line entered is e...
2011 May 09
3
ssh-agent subprocess parentage
...sh-agent with a subcommand; my X11 session is spawned through ssh-agent, and sometimes i'll run a special agent for a certain subset of commands, like this: ssh-agent bash ... and then do work within that shell. From the man page: > If a commandline is given, this is executed as a subprocess of the agent. > When the command dies, so does the agent. But looking at the process table (and at ssh-agent.c) this isn't what actually happens. It looks like the agent lives on as the subprocess, and the subcommand is execed from the parent process. This has troublesome implication...
2018 May 21
2
[PATCH for discussion only] lib: libvirt: If root, run qemu subprocess as root.root.
libvirt doesn't have a concept of "session qemu" for root: https://bugzilla.redhat.com/show_bug.cgi?id=890291 When a libguestfs-using process runs as root, and libvirt runs a qemu subprocess, the qemu subprocess is run as a non-root user (typically qemu.qemu). This causes various problems, for example if we try to open a file which is readable by root but unreadable by qemu.qemu then the operation will fail. This can be changed globally via a configuration file, but it can also be ch...
2010 May 02
0
[Bug 1766] New: ssh should provide the current session configuration to subprocesses it invokes (via the environment?)
https://bugzilla.mindrot.org/show_bug.cgi?id=1766 Summary: ssh should provide the current session configuration to subprocesses it invokes (via the environment?) Product: Portable OpenSSH Version: 5.5p1 Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P2 Component: ssh AssignedTo: unassigned-bugs at mindrot.or...
2008 Oct 17
2
R script from Python
Hi, I'm trying to execute R-script from Python. I'm using R 2.7.2, Python 2.5 and WinXP. I don't won't to use Python/R interface because of nature of project. Python code : import subprocess command = 'c:\\Program Files\\R\\R-2.7.2\\bin\\Rterm.exe --vanilla -q <d:\\test\\run\\geneBank.r> d:\\output.out' subprocess.Popen(command).wait() After that, I get error messages on Rterm.exe terminal : ARGUMENT 'd<:\lloydMax.r>' __ignored__ ARGUMENT 'd:\output....
2019 Oct 07
1
samba-tool user syncpasswords crashes with python3
...n. Read data from stdout and stderr, until end-of-file is reached. Wait for process to terminate. The optional input argument should be data to be sent to the child process, or None, if no data should be sent to the child. The type of input must be bytes. https://docs.python.org/3.6/library/asyncio-subprocess.html so, converting input to bytes and replay to string solves the problem. #reply = sync_command_p.communicate(input)[0] reply = sync_command_p.communicate(input.encode())[0].decode() Am Freitag, den 04.10.2019, 21:45 +0100 schrieb Rowland penny via samba: > On 04/10/2019 15:28, Heinz...
2019 Mar 21
2
[GSoC] Questions about project Text-Extraction Libraries
Hello! I have a few question related to the project Text-Extraction Libraries. Firstly, I think that trying to isolate library bugs in subprocesses could get to work, but I am not sure about how to handle deadlocks or infinite loops. I feel that using a timer is the only way to deal with it but I would like to know what you think about it. Secondly, I have been reading the source code of ominex, but I cannot figure out if it is possible to...
2017 Jul 10
2
using samba with bind dlz
..., names.domainsid, domainguid) File "/usr/lib64/python2.7/site-packages/samba/provision/sambadns.py", line 851, in create_samdb_copy os.path.join(dns_dir, "sam.ldb")) File "/usr/lib64/python2.7/site-packages/samba/tdb_util.py", line 36, in tdb_copy status = subprocess.call(tdbbackup_cmd, close_fds=True, shell=False) File "/usr/lib64/python2.7/subprocess.py", line 168, in call return Popen(*popenargs, **kwargs).wait() File "/usr/lib64/python2.7/subprocess.py", line 390, in __init__ errread, errwrite) File "/usr/lib64/python2...
2018 Sep 14
1
Bug 17432 in readLines with R >= 3.5.0 still a problem
...script (example.r): > > ================ > > f <- file("stdin") > > open(f) > > while(length(line <- readLines(f,n=1)) > 0) { > > write(line, stderr()) > > } > > > > Python3 script: > > ============ > > import sys, os, subprocess > > process = subprocess.Popen(['Rscript', 'example.r'], stdin=subprocess.PIPE, stdout=subprocess.PIPE) > > for line in sys.stdin: > > process.stdin.write((line + '\n').encode('utf-8')) > > process.stdin.flush() > > > > &gt...
2010 Oct 22
0
[PATCH node] First draft of replacing some of the ovirt-config-* scripts with python equivalents.
...eletions(-) create mode 100644 scripts/ovirtfunctions.py create mode 100644 scripts/storage.py diff --git a/scripts/ovirtfunctions.py b/scripts/ovirtfunctions.py new file mode 100644 index 0000000..f2b9e39 --- /dev/null +++ b/scripts/ovirtfunctions.py @@ -0,0 +1,672 @@ +#!/usr/bin/python +import subprocess +import os +from subprocess import Popen, PIPE, STDOUT +import tempfile +import string +import sys + + +OVIRT_LOGFILE="/var/log/ovirt.log" +OVIRT_TMP_LOGFILE="/tmp/ovirt.log" +# label of the oVirt partition +OVIRT_LABEL="OVIRT" +# configuration values are loaded in the...
2020 Jul 23
2
samba-tool domain backup offline stalls
...er. Is there another way of configuring samba_server not to use ipv6? Even if there is another way to disable ipv6 binding, the nbtd service still fails to bind to ipv4:137. And 'samba-tool domain backup offline' still enters an infinite wait state at the same location. --- modulename: subprocess, funcname: _wait subprocess.py(1623): if self.returncode is not None: subprocess.py(1626): if timeout is not None: subprocess.py(1649): while self.returncode is None: subprocess.py(1650): with self._waitpid_lock: subprocess.py(1651):...