----- Original Message -----
From: "1ns0mn1a" <1ns0mn1a@...>
To: "Peter S Tillier" <geeksthatgawk@yahoogroups.com>
Sent: Thursday, January 02, 2003 3:44 PM
Subject: Re[2]: [Geeks that Gawk] system()
> joi 1/2/2003 Peter S Tillier a scris despre:
> "[Geeks that Gawk] system()"
>
>
> >> Is something wrong with this: BEGIN {system
> >> ("start mypage.html")} ?
> >>
>
> > Nope. Did you try it?
>
> yes, a lot :-(
> all I get is this message: "start: mypage.html is not a valid
> Win32 application."
>
> > This works for me:
>
> > C:\Cygwin\usr\doc\db-2.7.7\api_c\index>awk "BEGIN{system(\"start
> > flags.html\")}"
>
Are you sure that you're a) running awk from the directory that
contains mypage.html, and b) the .html extension is defined to
start your browser? If yes, does the page open if you double-
click it in Explorer?
As I say it works fine for me on Win98SE - takes a while to load.
> > c:\work\subdir1\subdir2>awk "BEGIN{system(\"mkdir ..\\mydir\")}"
>
> I did this (I escaped the separator) but it
> makes a directory named "..mydir" (!) in the same
> place where the script is, not one level upper.
>
Just tried this on my machine and once again it works fine.
I also tried both using Win95Cmd (which is basically the
WinNT/2K/XP cmd.exe command processor) and it works fine with
that too.
I'll try both of these on my work machine (Win2K) on Monday if
no one else comes up with a solution before then.
> OTOH these commands work just fine in the normal command line
> on my xp box and other dos commands work normally
> via 'system' function.
> This was the reason I asked this on the list, I
> am clueless...
>
Hope the above helps (or jogs someone else's memory).
Regards,
Peter
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com