todd@ivucsb.sba.ca.us (Todd Day) (10/22/89)
I am running elm on my UNIXPC. I'm also still using UA (which suits me just fine). Here's my problem: When mail comes in for me, the mail icon lights up. I want to be able to click on the mail icon and autoboot elm for me. I know of one way to do this making a C program called "/usr/bin/email" that runs elm. However, often I leave elm running in a window. If I click on the icon and elm is already running, the second version of elm complains that I am already running elm (it checks a lock file in tmp). What I want is a program that checks to see if that lock file exists, and if it does, finds the window that elm is running in and brings it to the foreground. Is this possible? Oh, BTW, I call "elm" from a menu selection. Here is /usr/lib/ua/Email: Name=Mail Status Default=Run Run=SH -w /usr/local/etc/mail_stat Name=Elm Default=Run Run=SH -wd /usr/local/etc/elm.fix Name=Read News Default=Run Run=SH -wd /usr/local/etc/nn.fix and here is /usr/local/etc/elm.fix: stty kill /usr/local/bin/windy -n "Elm" /usr/local/bin/elm As you can see, I open up elm into it's own window. I do this so I can easily select it with the Window Manager icon. Now, the way I see it, I should be able to look thru all the open windows for the window named "Elm". Once I find out which one it is, how do I promote it to the top? -- Todd Day | todd@ivucsb.sba.ca.us | ivucsb!todd@anise.acc.com "But a machine that was powerful enough to accelerate particles to the grand unification energy would have to be as big as the Solar System -- and would be unlikely to be funded in the present economic climate." -- Stephen Hawking
lenny@icus.islp.ny.us (Lenny Tropiano) (10/24/89)
In article <1989Oct22.000322.1187@ivucsb.sba.ca.us> todd@ivucsb.sba.ca.us (Todd Day) writes: ... |>When mail comes in for me, the mail icon lights up. I want to be able |>to click on the mail icon and autoboot elm for me. I know of one way |>to do this making a C program called "/usr/bin/email" that runs elm. |>However, often I leave elm running in a window. If I click on the icon |>and elm is already running, the second version of elm complains that |>I am already running elm (it checks a lock file in tmp). What I want |>is a program that checks to see if that lock file exists, and if it |>does, finds the window that elm is running in and brings it to the |>foreground. |> ... What you are looking for, I just posted to unix-pc.sources and comp.sys.att. It's my email.c program with the proper enhancements to allow what you want, and select the already running Mail window. I liked your idea, so I implemented it! -Lenny -- | Lenny Tropiano ICUS Software Systems [w] +1 (516) 589-7930 | | lenny@icus.islp.ny.us Telex; 154232428 ICUS [h] +1 (516) 968-8576 | | {ames,pacbell,decuac,hombre,sbcs,attctc}!icus!lenny attmail!icus!lenny | +------- ICUS Software Systems -- PO Box 1; Islip Terrace, NY 11752 -------+