Re: system command output different in guile than on command line

2020-08-05 Thread tomas
On Wed, Aug 05, 2020 at 11:27:30AM +, vapnik spaknik via General Guile related discussions wrote: [...] > OK... I was being stupid. We all are, most of us more often than not ;-) >Another strange thing is that if I use the pipeline procedure to do the same >thing, then I get an exit code

Re: system command output different in guile than on command line

2020-08-05 Thread vapnik spaknik via General Guile related discussions
On Tuesday, August 4, 2020, 10:34:22 PM GMT+1, vapnik spaknik wrote: >Hi, >    I'm trying to write some code to get the size of a diff of two files. >If I run the following pipeline in my zsh shell: > >> diff -ua /tmp/file1 /tmp/file2 | wc -c > >it prints 215 >However when I run the followin

Re: system command output different in guile than on command line

2020-08-05 Thread tomas
On Tue, Aug 04, 2020 at 09:34:22PM +, vapnik spaknik wrote: > Hi, > I'm trying to write some code to get the size of a diff of two files. > If I run the following pipeline in my zsh shell: > > > diff -ua /tmp/file1 /tmp/file2 | wc -c > > it prints 215 > However when I run the following in

Re: system calls

2015-09-01 Thread Marko Rauhamaa
Tomas By : > In a Guile program I am using (system ) to start a C binary > which I then communicate with over the network. > > I'm wondering if there is any way to get the process id of this binary? > > Have tried to call "ps -A|grep " using with-output-to-string and > with-error-to-string, but am

Re: System Scheme (was Re: GOOPS Terminal Class - RnRS POSIX support)

2015-06-25 Thread Ludovic Courtès
Marko Rauhamaa skribis: > Eli Zaretskii : > > From: Marko Rauhamaa >>> I'd like to produce Guile code that works on Linux. As it stands, I >>> can't. >> >> Of course you can: write it in C and load it via FFI. > > Well, for that, I don't even need Guile; all I need is gcc. > > It's a bit of

Re: System Scheme (was Re: GOOPS Terminal Class - RnRS POSIX support)

2015-06-24 Thread Marko Rauhamaa
Eli Zaretskii : From: Marko Rauhamaa >> I'd like to produce Guile code that works on Linux. As it stands, I >> can't. > > Of course you can: write it in C and load it via FFI. Well, for that, I don't even need Guile; all I need is gcc. It's a bit of a lame reason to have to escape out of S

Re: System Scheme (was Re: GOOPS Terminal Class - RnRS POSIX support)

2015-06-24 Thread Eli Zaretskii
>>> From: Marko Rauhamaa >>> Date: Tue, 23 Jun 2015 11:08:23 +0300 >>> Cc: guile-user@gnu.org >>> >>> Michael Tiedtke : POSIX isn't that important or useful anymore but "full access to POSIX system calls" it has never been. >>> What I'd like is a way to communicate open file descriptors

Re: System commands with error escaping

2014-11-27 Thread 白熊
On 2014年11月27日 9:45:26 GMT+03:00, Thien-Thi Nguyen wrote: > >Personally, i use ‘(ttn-do zzz subprocess) call-process’, from >package ttn-do (http://www.gnuvola.org/software/ttn-do/). Hi: Thanks for the recommendation. I've inspected ttn-do, however it seems too old to me, for instance reli

Re: System commands with error escaping

2014-11-26 Thread Thien-Thi Nguyen
() "白熊 @相撲道" () Thu, 27 Nov 2014 00:18:22 +0300 The problem with this is, when configure fails for example due to an error, I don't catch the error and next command gets executed... But I need to catch the error and stop Guile from proceeding, so I see what happened. How can I bes

Re: system

2014-10-20 Thread Barry Schwartz
Taylan Ulrich Bayirli/Kammer skribis: > Tim Even writes: > > > I've been using Chez/Petite Scheme's system command as a sort of > > Scheme interface to Netpbm and other executables. Any information -- > > more than what is in the documentation -- on a Guile equivalent? > > Guile has a `system'

Re: system

2014-10-20 Thread Taylan Ulrich Bayirli/Kammer
Tim Even writes: > I've been using Chez/Petite Scheme's system command as a sort of > Scheme interface to Netpbm and other executables. Any information -- > more than what is in the documentation -- on a Guile equivalent? Guile has a `system' procedure as well. Note that its behavior does not

Re: (system cmd) not working after slib

2007-10-27 Thread Ludovic Courtès
Hi, "Scott Walck" <[EMAIL PROTECTED]> writes: > (system "ls"); works > (use-modules (ice-9 slib)) ; works > (system "ls"); no longer works Unfortunately, I can't reproduce that here: $ SCHEME_LIBRARY_PATH=/usr/local/lib/slib/ ./pre-inst-guile guile> (system