🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.linux.misc
Article #545

Re: [Q] Running xterm with sticky from rc.local

#545
From: Ben Buxton
Date: Wed, 07 May 1997 00:00
42 lines
2308 bytes
In article <pu9nk5.6s.ln@bushrock.zip.com.au>,
Grahame M. Kelly - Linux User <gmkelly@zip.com.au> wrote:
>Hi All,
>
>I have a UPS monitor program that I can run from a X terminal screen by
>"telent localhost UPSstats" which then every second or so puts the
>UPS status line " Mains 240VAC, Battery 99% etc...".
>
>What I wish to do is have a xterm run at a given position on my 
>virtual X screen that runs the telnet session automatically at startup
>and in Sticky mode.
>
>I have tried to get the xterm to automatically run at startx time by:
>"xterm -geometry 69x2+581+711 -e telnet localhost UPSstats -T UPSstats &"
>without success in my .xinitrc session. File permissions etc are OK.
>And I preferr the fvwm, but this should not make any difference I would
>have thought.

The '-e' parameter should be the last on the xterm command line:

xterm -geometry 69x2+581+711 -T UPSstats -e telnet localhost UPSstats &

>Also I can't see (in the man pages) how to let the Xserver know I want
>to run this window as Sticky.
>
>Could anyone help me ? 

Give the xterm instance a unique name (UPSstats) with the command line
option '-name' (this will also set the title name so with this you
dont need the '-T' option)  and then in your .fvwm(2)rc make an appropriate
'Style' line.

Style "UPSstats" Sticky



-- 
Ben Buxton_____________________    o    _          _--_|\   ZIP Internet P/L
Zip Guy   bb@zip.com.au       /____|___|_)________/______\______________________
Voice:   9270-4777                     | .        \_.--._*    Virtually
Dial-in: 9247-7288, 9247-9144    Fax: 92475276          v     the best :)
Technical Details
Message-ID: <5kompf$g9j$1@the-fly.zip.com.au>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <pu9nk5.6s.ln@bushrock.zip.com.au>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10c696,4ac7d9cf400ed32b
X-Google-Attributes: gid10c696,public
X-Google-Thread: 1103af,4ac7d9cf400ed32b
X-Google-Attributes: gid1103af,public
X-Google-Thread: 102983,4ac7d9cf400ed32b
X-Google-Attributes: gid102983,public
From: bb@zipper.zip.com.au (Ben Buxton)
Subject: Re: [Q] Running xterm with sticky from rc.local
Date: 1997/05/07
Message-ID: <5kompf$g9j$1@the-fly.zip.com.au>
X-Deja-AN: 239919598
References: <pu9nk5.6s.ln@bushrock.zip.com.au>
Organization: Zip Internet Professionals Pty Ltd
Newsgroups: comp.os.linux.misc,aus.computers.linux,comp.os.linux.development.apps