----- Original Message -----
From: "1ns0mn1a" <1ns0mn1a@...>
To: <geeksthatgawk@yahoogroups.com>
Sent: Wednesday, January 01, 2003 8:30 PM
Subject: [Geeks that Gawk] system()
> Hello listers,
>
> can anybody tell me wether and how the 'system' function
> will accept the 'start' command (on a xp box)?
>
> All I want is to open a local saved web page
> with a "start mypage.html" command, like in command line.
>
> Is something wrong with this: BEGIN {system
> ("start mypage.html")} ?
>
Nope. Did you try it?
This works for me:
C:\Cygwin\usr\doc\db-2.7.7\api_c\index>awk "BEGIN{system(\"start
flags.html\")}"
> Another problem I have with the 'system' command
> is that I couldn't find the way to write
> something like: "mkdir ../mydir"
>
You may need to write something like;
c:\work\subdir1\subdir2>awk "BEGIN{system(\"mkdir ..\\mydir\")}"
to create c:\work\subdir1\mydir, i.e., use a dos-like dir
separator and escape it.
> I know it is easier to use these commands
> *outside* the awk script but I'd like to try to use them
> within the awk script.
>
> Any hint?
> TIA
>
HTH
Peter S Tillier peter.tillier@...
petert@...
Opinions expressed are my own and not necessarily
those of my employer.
__________________________________________________
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