htnlview

Michal Kochanowicz michal w michal.waw.pl
Śro, 7 Sty 2004, 18:25:11 CET


Hej!

htmlview (używany m.in. via mailcap) zachowuje się niepoprawnie jeśli
jest ustawiona zmienna DISPLAY. Wynik
strace -f -eexecve -o /tmp/log.s /usr/bin/htmlview /tmp/muttxI...
widać poniżej. Przede wszystkim chodzi mi o:
/usr/X11R6/bin/xterm -e /usr/bin/elinks -dump /tmp/muttPPIVgR

Ten xterm jest do tego zupełnie niepotrzebny, a wręcz przeszkadza - w
efekcie nie działa.

Druga sprawa to czy nie za dużo tych execve? Np dwa chyba identyczne
wywołania grep i egrep? Albo to:
/sbin/pidof gnome-session

Albo to:
ls -l /proc/self/fd/1

Czy ten program nie jest aby zbytnio pokręcony aby wogóle go używać? A
może to kwestia konfiguracji???

Pozdrawiam Michał

31401 execve("/usr/bin/htmlview", ["/usr/bin/htmlview", "/tmp/muttPPIVgR"], [/* 30 vars */]) = 0
31402 --- SIGSTOP (Stopped (signal)) @ 0 (0) ---
31403 --- SIGSTOP (Stopped (signal)) @ 0 (0) ---
31403 execve("/bin/uname", ["uname", "-s"], [/* 28 vars */]) = 0
31402 --- SIGCHLD (Child exited) @ 0 (0) ---
31401 --- SIGCHLD (Child exited) @ 0 (0) ---
31404 --- SIGSTOP (Stopped (signal)) @ 0 (0) ---
31405 --- SIGSTOP (Stopped (signal)) @ 0 (0) ---
31405 execve("/bin/uname", ["uname", "-r"], [/* 28 vars */]) = 0
31404 --- SIGCHLD (Child exited) @ 0 (0) ---
31401 --- SIGCHLD (Child exited) @ 0 (0) ---
31406 --- SIGSTOP (Stopped (signal)) @ 0 (0) ---
31401 --- SIGCHLD (Child exited) @ 0 (0) ---
31407 --- SIGSTOP (Stopped (signal)) @ 0 (0) ---
31408 --- SIGSTOP (Stopped (signal)) @ 0 (0) ---
31408 execve("/bin/sed", ["sed", "-ne", "/^# START exclude/,/^# FINISH ex"..., "/etc/bash_completion"], [/* 28 vars */]) = 0
31409 --- SIGSTOP (Stopped (signal)) @ 0 (0) ---
31407 --- SIGCHLD (Child exited) @ 0 (0) ---
31401 --- SIGCHLD (Child exited) @ 0 (0) ---
31410 --- SIGSTOP (Stopped (signal)) @ 0 (0) ---
31411 --- SIGSTOP (Stopped (signal)) @ 0 (0) ---
31411 execve("/bin/egrep", ["egrep", "-q", "^(http://|ftp://|www\\.|ftp\\.)"], [/* 28 vars */]) = 0
31411 execve("/bin/grep", ["/bin/grep", "-E", "-q", "^(http://|ftp://|www\\.|ftp\\.)"], [/* 28 vars */]) = 0
31401 --- SIGCHLD (Child exited) @ 0 (0) ---
31412 --- SIGSTOP (Stopped (signal)) @ 0 (0) ---
31412 execve("/bin/ls", ["ls", "-l", "/proc/self/fd/1"], [/* 28 vars */]) = 0
31413 --- SIGSTOP (Stopped (signal)) @ 0 (0) ---
31413 execve("/bin/grep", ["grep", "pipe:"], [/* 28 vars */]) = 0
31401 --- SIGCHLD (Child exited) @ 0 (0) ---
31414 --- SIGSTOP (Stopped (signal)) @ 0 (0) ---
31414 execve("/sbin/pidof", ["/sbin/pidof", "gnome-session"], [/* 28 vars */]) = 0
31401 --- SIGCHLD (Child exited) @ 0 (0) ---
31415 --- SIGSTOP (Stopped (signal)) @ 0 (0) ---
31416 --- SIGSTOP (Stopped (signal)) @ 0 (0) ---
31416 execve("/bin/sed", ["sed", "s/^declare -f //"], [/* 28 vars */]) = 0
31417 --- SIGSTOP (Stopped (signal)) @ 0 (0) ---
31417 execve("/bin/grep", ["grep", "^ELINKS_CMD$"], [/* 28 vars */]) = 0
31401 --- SIGCHLD (Child exited) @ 0 (0) ---
31418 --- SIGSTOP (Stopped (signal)) @ 0 (0) ---
31401 --- SIGCHLD (Child exited) @ 0 (0) ---
31419 --- SIGSTOP (Stopped (signal)) @ 0 (0) ---
31401 --- SIGCHLD (Child exited) @ 0 (0) ---
31401 execve("/usr/X11R6/bin/xterm", ["/usr/X11R6/bin/xterm", "-e", "/usr/bin/elinks", "-dump", "/tmp/muttPPIVgR"], [/* 27 vars */]) = 0
31420 --- SIGSTOP (Stopped (signal)) @ 0 (0) ---
31420 execve("/usr/sbin/utempter", ["/usr/sbin/utempter", "-a", "/dev/pts/4"], [/* 27 vars */]) = 0
31401 --- SIGCHLD (Child exited) @ 0 (0) ---
31421 --- SIGSTOP (Stopped (signal)) @ 0 (0) ---
31421 execve("/usr/bin/elinks", ["/usr/bin/elinks", "-dump", "/tmp/muttPPIVgR"], [/* 28 vars */]) = 0
31401 --- SIGCHLD (Child exited) @ 0 (0) ---
31422 --- SIGSTOP (Stopped (signal)) @ 0 (0) ---
31422 execve("/usr/sbin/utempter", ["/usr/sbin/utempter", "-d", "/dev/pts/4"], [/* 27 vars */]) = 0
-- 
--= Michal Kochanowicz =--==--==BOFH==--==--= michal w michal.waw.pl =--
--= finger me for PGP public key or visit http://michal.waw.pl/PGP =--
--==--==--==--==--==-- Vodka. Connecting people.--==--==--==--==--==--
A chodzenie po górach SSIE!!!



Więcej informacji o liście dyskusyjnej pld-devel-pl