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...
Want to share photos of your group with the world? Add a group photo to Flickr.

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 #58 of 221 |
Re: Re[2]: [Geeks that Gawk] system()

----- 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



Fri Jan 3, 2003 12:00 am

peter_tillier
Offline Offline
Send Email Send Email

Forward
Message #58 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