Refresh tabs or launch a new tab from Crosh or Shell?

207 views
Skip to first unread message

Nick Chappell

unread,
Feb 27, 2015, 10:21:32 AM2/27/15
to chromiu...@chromium.org
I hope I am posting this in the correct place. If not I apologize, and I will delete the post. 

I am remotely working on some Chromebooks via SSH. Basically what I am doing is copying an extension via SCP, and then I want refresh to be able to tell the tabs on that Chromebook to refresh via SSH (or any remote means really.). I didn't think this would be difficult, but it turns out the shell is more limited than I first thought. Does anyone have some suggestions or had luck doing something similiar?



tl:dr - How do I refresh tabs from crosh/shell? 

Mike Frysinger

unread,
Feb 27, 2015, 4:52:36 PM2/27/15
to Nick Chappell, chromium-os-dev, Pawel Osciak
you could VNC into the device then do what you want

Pawel does remote work quite a bit, so he might have better suggestions

i don't believe there's a command line API here
-mike

--
--
Chromium OS Developers mailing list: chromiu...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-os-dev?hl=en


Nick Chappell

unread,
Feb 27, 2015, 5:59:13 PM2/27/15
to chromiu...@chromium.org, luk...@gmail.com, pos...@google.com
I am trying to script the process so I was hoping for something I could do from the terminal. Thanks for the response though. Appreciate it. 

Daniel Erat

unread,
Feb 27, 2015, 6:25:25 PM2/27/15
to Nick Chappell, Chromium OS dev, Pawel Osciak
If you don't mind crashing Chrome and having it get restarted by session_manager, "killall chrome" is probably one way to get Chrome to reload its tabs and extensions. :-P (It'll probably take a manual click to restore the tabs, though.)

I don't have much experience with it, but Telemetry might expose something like this. Probably worth glancing through tools/telemetry in the Chromium source.

Remote debugging might work too.

Robert Ginda

unread,
Feb 27, 2015, 7:25:14 PM2/27/15
to Daniel Erat, Nick Chappell, Chromium OS dev, Pawel Osciak
Or if you have control over the things you want to reload, you could add in a livereload kind of hook.

Nick Chappell

unread,
Mar 3, 2015, 3:33:15 PM3/3/15
to chromiu...@chromium.org, luk...@gmail.com, pos...@google.com
Your suggestion of killall actually lead me to the solution. I ended up just sshing "pkill chrome", which crashes Chrome, then set my extension as the startup page which is automatically reloaded upon crash. Thanks so much for the suggestion. 
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages