[Techtalk] brower access from fortran 95
Shirrell
shirrell at pstat.com
Tue Mar 4 15:05:26 UTC 2008
Conor Daly wrote:
> On Sat, Mar 01, 2008 at 09:46:30PM -0500 or thereabouts, Shirrell wrote:
>
>>Does anyone know how to access a web browser from fortran 95?
>
>
> Hi Shirrell,
>
> I'm not sure what you mean by that. Are you trying to interact with the
> browser or simply start a browser with a URL from within a fortran program?
No interaction, just point a browser at an html file
I am trying to move our help files from text to html -- driven this way by
the vagaries of Vista on the PC. I can do this on the PC with a function in
the Winteracter library but I would like to be able to do it on our other
supported environments -- Linux and Solaris.
> If the latter, you could do something like:
>
> character*200 URL
>
> write(URL,*)'http://www.linuxchix.org/'
>
> call system('firefox, URL')
>
> or
>
> call system('xdg-open, URL')
>
> if you're expecting the user's system to have xdg-utils
> (http://portland.freedesktop.org/) installed. I'm not sure though if you can
> use a program variable within the system call...
>
Thanks this is helpful. A major problem" I do not know what browser the user
might be using.
Shirrell
>
>
> Conor
More information about the Techtalk
mailing list