- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Help using pty
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-10-2006 09:09 AM
тАО07-10-2006 09:09 AM
Re: Help using pty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-10-2006 04:27 PM
тАО07-10-2006 04:27 PM
Re: Help using pty
[1862] lseek(4, 2444, SEEK_SET) .......................... = 2444
[1862] read(4, "N e w p a s s w o r d : ", 14) ....... = 14
[1862] open("/dev/tty", O_RDWR, 0666) .................... = 5
[1862] ioctl(5, TCGETA, 0x7f7fe2e8) ...................... = 0
[1862] sigsetreturn(0x7b038fee, 0x6211988, 1392) ......... = 0
[1862] sigvec(SIGINT, 0x7f7fde20, 0x7f7fde30) ............ = 0
[1862] ioctl(5, TCGETA, 0x7f7fdda0) ...................... = 0
[1861] sigtimedwait(0x7f7f0c88, NULL, 0x7f7f0ca8) ........ ERR#11 EAGAIN
[1861] time(NULL) ........................................ = 1152591374
[1861] sigprocmask(SIG_SETMASK, 0x7f7f0c58, NULL) ........ = 0
[1861] write(4, "w e l c o m \n", 7) ..................... = 7
[1861] sigprocmask(SIG_BLOCK, 0x7f7f0c38, 0x7f7f0c58) .... = 0
[1861] getitimer(ITIMER_REAL, 0x7f7f0c78) ................ = 0
[1861] time(NULL) ........................................ = 1152591374
[1861] sigtimedwait(0x7f7f0c88, NULL, 0x7f7f0ca8) ........ [sleeping]
[1861] sigtimedwait(0x7f7f0c88, NULL, 0x7f7f0ca8) ........ ERR#11 EAGAIN
[1861] time(NULL) ........................................ = 1152591377
[1861] sigprocmask(SIG_SETMASK, 0x7f7f0c58, NULL) ........ = 0
[1861] write(4, "w e l c o m \n", 7) ..................... = 7
[1861] sigprocmask(SIG_BLOCK, 0x7f7f0c38, 0x7f7f0c58) .... = 0
[1861] getitimer(ITIMER_REAL, 0x7f7f0c78) ................ = 0
[1861] time(NULL) ........................................ = 1152591377
[1861] sigtimedwait(0x7f7f0c88, NULL, 0x7f7f0ca8) ........ ERR#11 EAGAIN
[1861] time(NULL) ........................................ = 1152591379
[1861] sigprocmask(SIG_SETMASK, 0x7f7f0c58, NULL) ........ = 0
[1861] wait(0x7f7f0898) .................................. [sleeping]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2006 10:33 AM
тАО07-11-2006 10:33 AM
Re: Help using pty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2006 04:58 PM
тАО07-11-2006 04:58 PM
Re: Help using pty
to execlp("/sbin/passwd", "/sbin/passwd", argv[1], NULL);
and now it reads /etc/passwd and it writes a new password prompt but it still waits
[6592] open("/dev/tty", O_RDONLY, 0666) .................. = 3
[6592] ioctl(3, TCGETA, 0x7f7f0ee8) ...................... = 0
[6592] sigsetreturn(0x2fc98, 0x6211988, 1392) ............ = 0
[6592] sigaction(SIGINT, 0x7f7f0920, 0x7f7f0948) ......... = 0
[6592] ioctl(3, TCGETATTR, 0x7f7f0970) ................... = 0
[6592] ioctl(3, TCSETATTRF, 0x7f7f0970) .................. = 0
[6592] write(2, "N e w p a s s w o r d : ", 13) ........ = 13
[6591] sigtimedwait(0x7f7f0c88, NULL, 0x7f7f0ca8) ........ ERR#11 EAGAIN
[6591] time(NULL) ........................................ = 1152679755
[6591] sigprocmask(SIG_SETMASK, 0x7f7f0c58, NULL) ........ = 0
[6592] read(3, "w ", 1) .................................. = 1
[6591] write(4, "w e l c o m \r", 7) ..................... = 7
[6592] read(3, "e ", 1) .................................. = 1
[6591] sigprocmask(SIG_BLOCK, 0x7f7f0c38, 0x7f7f0c58) .... = 0
[6592] read(3, "l ", 1) .................................. = 1
[6591] getitimer(ITIMER_REAL, 0x7f7f0c78) ................ = 0
[6592] read(3, "c ", 1) .................................. = 1
[6591] time(NULL) ........................................ = 1152679755
[6592] read(3, "o ", 1) .................................. = 1
[6592] read(3, "m ", 1) .................................. = 1
[6592] read(3, "\r", 1) .................................. = 1
[6592] read(3, 0x400081c8, 1) ............................ [sleeping]
[6591] sigtimedwait(0x7f7f0c88, NULL, 0x7f7f0ca8) ........ ERR#11 EAGAIN
[6591] time(NULL) ........................................ = 1152679758
[6591] sigprocmask(SIG_SETMASK, 0x7f7f0c58, NULL) ........ = 0
[6591] write(4, "w e l c o m \r", 7) ..................... = 7
[6592] read(3, "w ", 1) .................................. = 1
[6591] sigprocmask(SIG_BLOCK, 0x7f7f0c38, 0x7f7f0c58) .... = 0
[6592] read(3, "e ", 1) .................................. = 1
[6591] getitimer(ITIMER_REAL, 0x7f7f0c78) ................ = 0
[6592] read(3, "l ", 1) .................................. = 1
[6591] time(NULL) ........................................ = 1152679758
[6592] read(3, "c ", 1) .................................. = 1
[6592] read(3, "o ", 1) .................................. = 1
[6592] read(3, "m ", 1) .................................. = 1
[6592] read(3, "\r", 1) .................................. = 1
[6591] sigtimedwait(0x7f7f0c88, NULL, 0x7f7f0ca8) ........ ERR#11 EAGAIN
[6591] time(NULL) ........................................ = 1152679760
[6591] sigprocmask(SIG_SETMASK, 0x7f7f0c58, NULL) ........ = 0
[6591] wait(0x7f7f0898) .................................. [sleeping]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-13-2006 06:03 AM
тАО07-13-2006 06:03 AM
Re: Help using pty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-13-2006 04:25 PM
тАО07-13-2006 04:25 PM
Re: Help using pty
- « Previous
-
- 1
- 2
- Next »