On 23-Sep-11 14:41:45, Mark Rogers wrote:
I have an Ubuntu box which I can access remotely via SSH. It is primarily a server but has a GUI with Firefox running on it for people on site to access the web interface that the server provides.
Firefox, being Firefox, sucks up memory the longer it's running.
So I'd like a way to force it to restart via my SSH connection, and assuming I'm happy with the results probably via a cron-job every night.
I can obviously "kill" it, but I'm not sure how I then restart it given that I'm not running from within the GUI environment myself; also, I don't want it to start up offering to restore tabs from a crashed session, I just want it to go to it's configured home page.
Suggestions?
-- Mark Rogers // More Solutions Ltd (Peterborough Office) // 0844 251 1450
To start up firefox (not already running) from a remote connection. it should be enough to execute
firefox &
This, however, will cause the firefox window to open in the remote machine (assuming it is X-enabled, e.g. you logged in from it using "ssh -X").
You should be able to cause the display to appear on the machine it is running on using the "--display=" option.
Not sure how to handle the need to re-start without the old tabs from a crashed session. 'man firefox' may offer some clues under the "profile"-related options.
Does this help? Ted.
-------------------------------------------------------------------- E-Mail: (Ted Harding) ted.harding@wlandres.net Fax-to-email: +44 (0)870 094 0861 Date: 23-Sep-11 Time: 16:03:27 ------------------------------ XFMail ------------------------------