[Wolfgang Schulze-Zachau] > Hi Petter, > > the script fails at the very first Popen call. If I replace > proc = subprocess.Popen(cmd, shell-True, stdout=subprocess.PIPE,) > with > proc = subprocess.Popen(cmd, shell-True, stdout=None,) > > the call succeeds. If the user has a local account, login succeeds, too. > I haven't tested any further combinations (e.g. home directory, primary > group membership, etc.) so far.
How strange. Any idea which process that fail to work with the PIPE? It was working for me the last time I tested it, so I wonder what changed. > I wonder why the author have specified subprocess.PIPE, since the > actual output is not captured anywhere in the script? It was written like that because I am not very familiar with Python and found a example doing it like that. Happy hacking, -- Petter Reinholtdsen -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org