4

I have a Cr-48 (Google Chrome notebook) in developer mode and can get to a bash shell by running the "shell" command in crosh. What I would like to do is open a new tab to a specific URL by entering a command in that shell. For example, I'd like to run something like "chrome http://www.google.com" in the shell to open a new tab showing Google Search.

There is an /opt/google/chrome/chrome binary in the root filesystem, but it does not do what I want.

Background info:

I installed Perl, Vim, and TwitVim on the Cr-48. The only things that don't work are commands that launch a browser from TwitVim. To do that, TwitVim does a system() call to run chrome with the URL as the argument. Until I figure out which binary to run on the Cr-48 to do that, this functionality won't work.

StayOnTarget
  • 11,743
  • 10
  • 52
  • 81
Morton Fox
  • 186
  • 4
  • 1
    I am kind of wondering if this question should be posted on Super User instead. However, there is a coding component to it here since I am looking for something I can invoke via system(). – Morton Fox Jan 28 '11 at 16:30
  • 3
    What happens if you simply type `open http://www.google.com` ? That works on some systems, like macs. – Bjorn Jan 28 '11 at 21:15
  • It says "bash: open: command not found". – Morton Fox Jan 28 '11 at 21:59
  • "open" is not magical in the Mac bash shell either. It runs /usr/bin/open. But yes, that's the kind of thing I was hoping to find on the Cr-48. – Morton Fox Jan 28 '11 at 22:26
  • Can I ask you how did you installed those programs Perl, Vim on Cr-48? What program or command did you use? Thank you. – antonio081014 Feb 16 '11 at 18:36
  • In my question above, I linked to my blog entry that describes how I installed the programs. Basically, I used packages from Arch Linux but there are a few other steps, such as switching the Cr-48 to developer mode and making the filesystem writable. – Morton Fox Feb 17 '11 at 18:54
  • find out where the binary app executable is, and just type that in. on mac it would be something like Applications/Google\ Chrome.app – neaumusic Aug 17 '16 at 12:16

0 Answers0