Click to See Complete Forum and Search --> : Shell with bash?


fod
03-25-2001, 07:16 PM
Well i am trying to write a c++ program which can open a web browser with a url.
But is there any commands like windoze Shell for bash?

f'lar
03-25-2001, 10:20 PM
char syscom[120], browscom[?]="netscape -<i forget the syntax>", url[80];
cout << "url?";
cin.getline(url, 80);
strcpy (syscom, browscom);
strcat (syscom, url);
system(syscom);

COOL! That was my 1500th post!

[ 25 March 2001: Message edited by: f'lar ]