# cat blog >> /dev/brain 2> /proc/mind
cat blog >> /dev/brain 2> /proc/mind
# ls -l /proc/26133/fd 0 -> /dev/pts/1 1 -> /dev/pts/1 2 -> /dev/pts/1 3 -> socket:[21652774] 4 -> socket:[21652775] 5 -> socket:[21652776] 6 -> socket:[21652777] 7 -> /daft_punk-ram-get_lucky.mp3 # lsof -n -i 4 -a -p 26133 COMMAND PID FD TYPE DEVICE SIZE/OFF NODE NAME vlc 26133 3u IPv4 21652774 0t0 UDP 192.168.1.1:46833->192.168.1.2:2001 vlc 26133 4u IPv4 21652775 0t0 UDP 192.168.1.1:46834->192.168.1.2:2002 vlc 26133 5u IPv4 21652776 0t0 UDP 192.168.1.1:48852->192.168.1.3:2001 vlc 26133 6u IPv4 21652777 0t0 UDP 192.168.1.1:48853->192.168.1.3:2002 # echo -e "call close(3)\nquit" > gdb_commands # gdb -p 26133 --batch -x gdb_commands
ls -l /proc/26133/fd
lsof -n -i 4 -a -p 26133
echo -e "call close(3)\nquit" > gdb_commands
gdb -p 26133 --batch -x gdb_commands
Post a Comment
No comments:
Post a Comment