Re: [Sshpass-devel] sshpass at HPUX 11.31
Brought to you by:
thesun
From: Shachar S. <sh...@sh...> - 2017-09-03 14:07:30
|
On 02/09/17 00:39, LI Michael wrote: > > > > Hi Shemesh, > > > > Thank you very much for your reply. > > > > Please see the attached tusc output, tusc.out. > > > > I ran the command as follows : > > > > /test1@host1234 [/home/test1] $/tmp/tusc/tusc.ksh > "/tmp/sshpass/sshpass-1.06/sshpass -p Xyza1234 ssh -vvv host1234 date"/ > > / / > > /root@host1234 [/tmp/tusc]/ > > /# cat tusc.ksh/ > > //usr/contrib/bin/tusc -a -e -k -E -f -F -h -l -n -p -r all -R -T -u > -v -w all -o /tmp/tusc/tusc.out $1/ > > / / > > > > Thanks and regards. > > Michael Li > > > Here's what I see in the traces you sent me: -u [/tmp/sshpass][14066]{3783827} fork() ................... (returning as child ...) ......... = 14064 {3783821} The child process is 14066. -u [/tmp/sshpass][14066]{3783827} setpgrp3(2) ................................................. [entry] -u [/tmp/sshpass][14066]{3783827} setpgrp3(2) ................................................. = 14066 Start a new session, disconnecting from the previous TTY -u [/tmp/sshpass][14066]{3783827} open(0x400132d0, O_RDWR, 01210) ............................. [entry] -u [/tmp/sshpass][14066]{3783827} open("/dev/pts/5", O_RDWR, 01210) ........................... = 6 Open /dev/pts/5 with the flags O_RDWR. According to Posix, at this point pts/5 is supposed to become the controlling terminal for the new process. This, obviously, does not happen. At this point I need to return the responsibility to this problem to you. As far as I can tell, the process is not behaving the way it should. I have no tools for investigating this any further than that. If you can find out why opening a TTY device does not turn it into the controlling TTY of the process, please do let me know, and I can work that into sshpass. Shachar |