Search the web
Sign In
New User? Sign Up
geeksthatgawk · for GNU Awk questions & discussions
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Re: [Geeks that Gawk] system()   Message List  
Reply | Forward Message #56 of 221 |
----- 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



Wed Jan 1, 2003 11:23 pm

peter_tillier
Offline Offline
Send Email Send Email

Forward
Message #56 of 221 |
Expand Messages Author Sort by Date

... 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...
Peter S Tillier
peter_tillier
Offline Send Email
Jan 1, 2003
11:24 pm

joi 1/2/2003 Peter S Tillier a scris despre: "[Geeks that Gawk] system()" ... yes, a lot :-( all I get is this message: "start: mypage.html is not a valid ...
1ns0mn1a
victorvasile
Offline Send Email
Jan 2, 2003
8:06 pm

... 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...
Peter S Tillier
peter_tillier
Offline Send Email
Jan 3, 2003
12:01 am

I wanted to stop that insanity and re-installed my XP. Now the awk 'system' function seems to work normally. Sorry for bothering you with a non-awk problem... ...
1ns0mn1a
victorvasile
Offline Send Email
Jan 4, 2003
9:59 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help