Click to See Complete Forum and Search --> : xterm -e question


Pierre Lambion
04-22-2001, 05:23 AM
Hi,


I have set some preferences in icewm. When clicking on the net status (in the taskbar) I want to show my IP in a xterm window.

I put NetStatusCommand="xterm -e /sbin/ifconfig ppp0" in my preferences file.

When I try it, the xterm is launched, command issued and ... xterm closed.

How do I keep xterm opened after the command execution? Should I use another program (xconsole, some message box util), should I pipe the command to another program?

Thx for any advice or tip.

Pierre

Pierre Lambion
04-22-2001, 05:33 AM
Sorry,

discard my message: I found it:


NetStatusCommand="/sbin/ifconfig ppp0 | xmessage -nearmouse -file -"


The trick was the -file - so that xmessage doesn't complain about the missing file.

P.