Hi,
I just found it fails on Solaris 10, once using via crontab.
Traceback (most recent call last):
File "/export/home/sdpuser/NPCverify/Get_NPC_files.py", line 48, in <module>
exp = pexpect.spawn("/usr/bin/bash")
File "/export/home/sdpuser/NPCverify/pexpect.py", line 429, in init
self._spawn (command, args)
File "/export/home/sdpuser/NPCverify/pexpect.py", line 531, in _spawn
self.pid, self.child_fd = self.__fork_pty()
File "/export/home/sdpuser/NPCverify/pexpect.py", line 592, in __fork_pty
self.__pty_make_controlling_tty(child_fd)
File "/export/home/sdpuser/NPCverify/pexpect.py", line 615, in __pty_make_controlling_tty
fd = os.open("/dev/tty", os.O_RDWR | os.O_NOCTTY);
OSError: [Errno 6] No such device or address: '/dev/tty'</module>
I checked code and saw a possible patch to fix it. I tested in Solaris and Linux (Ubuntu) and it seems to be working accordingly.
Patch follows attached.
Looks like this patch was accepted. Closing.