strace Use Example - The Networked Client (Cont.) Now the user+password dialog (read from user, send to server): write(1, "Name (actcom.co.il:choo): ", 26) = 26 read(0, "choo\n", 1024) = 5 rt_sigaction(SIGINT, {0x804e960, [INT], SA_RESTART|0x4000000}, {0x80535a0, [INT], SA_RESTART|0x4000000}, 8) = 0 write(3, "USER choo\r\n", 11) = 11 rt_sigaction(SIGINT, {0x804e960, [INT], SA_RESTART|0x4000000}, {0x804e960, [INT], SA_RESTART|0x4000000}, 8) = 0 read(3, "331 Password required for choo.\r"..., 4096) = 33 write(1, "331 Password required for choo.\n", 32) = 32 rt_sigaction(SIGINT, {0x804e960, [INT], SA_RESTART|0x4000000}, {0x804e960, [INT], SA_RESTART|0x4000000}, 8) = 0 rt_sigaction(SIGINT, {0x80535a0, [INT], SA_RESTART|0x4000000}, {0x804e960, [INT], SA_RESTART|0x4000000}, 8) = 0 open("/dev/tty", O_RDWR|O_CREAT|O_TRUNC, 0666) = 4 ioctl(4, SNDCTL_TMR_TIMEBASE, {B38400 opost isig icanon echo ...}) = 0 ioctl(4, SNDCTL_TMR_CONTINUE, {B38400 opost -isig icanon -echo ...}) = 0 fstat64(4, {st_mode=S_IFCHR|0666, st_rdev=makedev(5, 0), ...}) = 0 ioctl(4, SNDCTL_TMR_TIMEBASE, {B38400 opost -isig icanon -echo ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000 write(4, "Password:", 9) = 9 read(4, "mypasswd\n", 4096) = 9 write(4, "\n", 1) = 1 ioctl(4, SNDCTL_TMR_CONTINUE, {B38400 opost isig icanon echo ...}) = 0 close(4) = 0 munmap(0x40017000, 4096) = 0 rt_sigaction(SIGINT, {0x804e960, [INT], SA_RESTART|0x4000000}, {0x80535a0, [INT], SA_RESTART|0x4000000}, 8) = 0 write(3, "PASS mypasswd\r\n", 15) = 15