You are not logged in.
Hello,
I was hoping someone might be able to help me. I'm looking for a script that will restart Chromium and restart it to a certain website every hour. Any help would be appreciated!
Thanks
Offline
It might be easier to do it inside chromium with a simple easy to write extension.
Or what about one from the play store? https://chrome.google.com/webstore/deta … cebd?hl=en
Last edited by ewaller (2016-01-02 00:06:34)
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
Welcome to the Arch Linux forums!
restart it to a certain website every hour
What do you mean with "a certain website"? Always the same? Or changing depending on the time/location/Saturn's position in the sky?
What is your real goal?
EDIT
As a quick hack:
while true; do
chromium "$url" &
chromium_pid=$!
sleep 3600
kill $chromium_pid
doneHow you set $url would then be up to you.
EDIT2
Or as ewaller suggested.
Last edited by ayekat (2016-01-02 00:10:09)
Offline
Welcome to the Arch Linux forums!
bordot wrote:restart it to a certain website every hour
What do you mean with "a certain website"? Always the same? Or changing depending on the time/location/Saturn's position in the sky?
What is your real goal?EDIT
As a quick hack:while true; do chromium "$url" & chromium_pid=$! sleep 3600 kill $chromium_pid doneHow you set $url would then be up to you.
EDIT2
Or as ewaller suggested.
For example, I want the script to kill the entire Chromium browser every 1hour and restart it at google.com. Would that quick script do that?
Thank both of you for your help.
Offline
Yes, if you set "http://google.com/" as the $url, it should do that. However, the plugin that ewaller suggested would presumably be a more elegant solution.
I still don't know what you are trying to achieve, though. ![]()
Offline
Yes, if you set "http://google.com/" as the $url, it should do that. However, the plugin that ewaller suggested would presumably be a more elegant solution.
I still don't know what you are trying to achieve, though.
After running for many hours, Chromium will sometimes crash and the tabs will freeze until they are restarted. I am just looking for a way to restart them automatically every 1 hour so that a tab won't be crashed without me knowing about it. I'm running many servers each with their own Chromium browser, so it can be quite difficult to keep checking them to ensure everything is OK. Does that clear things up?
Offline
Maybe you should find out why Chromium crashes, and do something about it?
Also I'm curious - why are you running browsers on servers?
Offline