Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.forth > #21941

Re: Gforth linux system pipes?

Newsgroups comp.lang.forth
Date 2013-04-26 10:10 -0700
References (2 earlier) <194084f9-a614-466a-8862-3c0acd30490e@googlegroups.com> <93e7e7dd-5203-42ad-9430-5b87bd4aa1a1@googlegroups.com> <kl3qca$td$1@online.de> <ae228dca-7e8b-46ce-8519-cb6b76380000@googlegroups.com> <kle2df$ljq$1@online.de>
Message-ID <6928475d-b225-479f-bf99-49c770c67f6e@googlegroups.com> (permalink)
Subject Re: Gforth linux system pipes?
From Philip Smith <philipkingsmith@gmail.com>

Show all headers | View raw


On Friday, April 26, 2013 8:19:26 AM UTC-6, Bernd Paysan wrote:
> Philip Smith wrote:
> 
> > Hi again Bernd.   Ok so i can't seem to find this "fixed" script.fs for
> 
> > version 0.7.0 that you are referring to above.  I looked in the Savannah
> 
> > Git repository at version 0.7.0 Gforth and yes i did find script.fs but it
> 
> > still generates an error!  The error is as follows:
> 
> 
> 
> This is the patch I've checked in:
> 
> 
> 
> http://git.savannah.gnu.org/cgit/gforth.git/commit/?h=v0-7-0&id=10caf767594bd44fa35a787548ffbc405834229e
> 
> 
> 
> Using gitweb on my own server (which mirrors the git repository) shows what 
> 
> sould be expected:
> 
> 
> 
> http://git.bernd-paysan.de/?p=gforth;a=blob;f=script.fs;h=2fab0d42a0a918c6ab54d90288eb8df83fe4a683;hb=refs/heads/v0-7-0
> 
> 
> 
> >      So i guess i still do not have the correct script.fs !  Could i
> 
> >      possibly have a link to this resource as it would be of great use!
> 
> 
> 
> Come on, just clone the git repository!  cgit seems to cache stuff and 
> 
> doesn't fully keep track of everything...
> 
> 
> 
> -- 
> 
> Bernd Paysan
> 
> "If you want it done right, you have to do it yourself"
> 

Thanks Bernd!  Well i see it now and yes it works! 
Ok Great stuff ...  I guess now the next thing is i need to just wrap sh-get inside some error trapping because i assume linux is returning a empty message when some command returns nothing.  For example :

: myshget ( addr u -- addr1 u1 nflag )
     TRY she-get 0
     RESTORE ENTRY ;

Now if i use this like follows:
 s" pgrep somecodemayberunning" myshget . type
I will get 0 returned and the pid number typed to the console if somecodemayberunning does in deed have a pid.  If somecodemayberunning is not in fact running i get -514 and a zero string.  I assume this -514 is generated because of some condition in gforth and it may even be the slurp-fid that causes this.  
  Anyways Thanks Bernd i can use this.  I mostly wanted to have this addressed for others to see how to do this as i am sure others are having some similar needs.  Or i could be totally mistaken because i am maybe the ignorant one here!  Hey you do not know what you do not know i will be the first to admit that.    Also i just want to say about forth ... i love this stuff!  Always will use it and always have been using it.. i just have not used any standard stuff from anybody because i make my one stuff so Gforth is a nice change towards a standard.  
 I like the goals of Gforth.  Thanks Bernd!
    Gforth should conform to the ANSI/200x Forth standard.
    It should be a model, i.e. it should define all the implementation-dependent things.
    It should become standard, i.e. widely accepted and used. This goal is the most difficult one.

Back to comp.lang.forth | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Gforth linux system pipes? Philip Smith <philipkingsmith@gmail.com> - 2013-04-17 14:49 -0700
  Re: Gforth linux system pipes? Bernd Paysan <bernd.paysan@gmx.de> - 2013-04-18 00:28 +0200
    Re: Gforth linux system pipes? Philip Smith <philipkingsmith@gmail.com> - 2013-04-17 15:40 -0700
      Re: Gforth linux system pipes? Philip Smith <philipkingsmith@gmail.com> - 2013-04-17 18:13 -0700
        Re: Gforth linux system pipes? Bernd Paysan <bernd.paysan@gmx.de> - 2013-04-22 19:00 +0200
          Re: Gforth linux system pipes? Philip Smith <philipkingsmith@gmail.com> - 2013-04-25 17:54 -0700
            Re: Gforth linux system pipes? Bernd Paysan <bernd.paysan@gmx.de> - 2013-04-26 16:19 +0200
              Re: Gforth linux system pipes? Philip Smith <philipkingsmith@gmail.com> - 2013-04-26 10:10 -0700
            Re: Gforth linux system pipes? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2013-04-26 14:10 +0000

csiph-web