1. How can I call Google?
I'm using Linux, Mandrake 9.2, blackbox.
If I try:
system("start http://www.google.com/",2)
that doesn't work.
The error message says it doesn't understand the command "start".
2. Re: How can I call Google?
> If I try:
> system("start http://www.google.com/",2)
>
> that doesn't work.
>
> The error message says it doesn't understand the command "start".
That's because 'start' is a Windows command.Try 'exec' instead.
http://www.ss64.com/bash/exec.html
ss64.com is a wonderful resource for nearly all command-line commands
for the major OSes (Windows NT/XP, Linux, OS X, and Oracle 9i).
~Greg
3. Re: How can I call Google?
Greg Haberek wrote:
>
> > If I try:
> > system("start <a
> > href="http://www.google.com/">http://www.google.com/</a>",2)
> >
> > that doesn't work.
> >
> > The error message says it doesn't understand the command "start".
>
> That's because 'start' is a Windows command.Try 'exec' instead.
>
> <a
> href="http://www.ss64.com/bash/exec.html">http://www.ss64.com/bash/exec.html</a>
>
> ss64.com is a wonderful resource for nearly all command-line commands
> for the major OSes (Windows NT/XP, Linux, OS X, and Oracle 9i).
>
> ~Greg
>
What I think you want to do is this:
system("sensible-browser http://www.google.com/",2)
This will open google.com in the users preferred browser.
Regards, Alexander Toresson