Trying to kill a Firefox window through remote ssh session
Hello,
I am lost as to what command I can use to kill a Firefox window through a remote ssh session. I have a Linux machine running openSuse 12.1 that I use here at work for our lobby t.v. I have crontab set to open Firefox first thing in the morning and when it does that Firefox, due to the web address that it is pointed too, opens a total of three windows, only two of which i actually need displayed. So my question is what terminal command can I use to kill the one window I do not need? I would like to be able to eventually add the command to the .sh script I wrote to open Firefox. Thanks in advance for the help Jimi |
Quote:
|
unSpawn,
No it does not return anything like that. After reading my post I realized I did not explain that very clearly. Firefox's home page is set to an internal web address http://xxx.xxxxx.xxx/xxx/luanch.php (sorry for security reasons cant give the whole address), from there it opens two additional windows that have the actual info that I want displayed, conference schedules, contact info and so on. The original window just stays a blank grey screen that to be honest is doing nothing and for cleanliness I would like to be able to close it and just have the two windows open that are needed. I remote into this box using PuTTY so I would like to be able to do this through the terminal. |
I think the way is to identify the window (by title) and send a close command. You can try wmctrl to implement it.
|
Quote:
|
that means you do not have access right to that DISPLAY. In this case there is no way to identify the window, there is no way to send events to that window manager, you can only kill the process (firefox) itself. You need to give access right to that user...
|
I see.....that would make sense. Ok so then how would I go about giving access to it through an ssh session? Still pretty new to Linux.
|
Quote:
|
Quote:
|
All times are GMT -5. The time now is 03:16 PM. |