Re: how to kill child process?

2020-08-24 Thread vapnik spaknik via General Guile related discussions
>On Monday, August 24, 2020, 03:27:57 PM GMT+1, Sebastian Miele > wrote: > >Look at output of the following: > >  pkill ssh >  ssh -S '~/.ssh/socket/%C' -N -M -f & >  echo $! >  pgrep -a ssh > >Then look at the output of: > > pkill ssh >  ssh -S '~/.ssh/socket/%C' -N -M & >  echo $! >  pgrep

Re: how to kill child process?

2020-08-24 Thread vapnik spaknik via General Guile related discussions
>On Monday, August 24, 2020, 01:05:31 PM GMT+1, Sebastian Miele > wrote: >vapnik spaknik writes: >> (execlp "ssh" "ssh" "-S" "~/.ssh/%C" "-N" "-f" "remotehost") >> >> However, this doesn't work >The problem probably is the following: The above invocation of 'ssh' >with '-S' is the

Re: how to kill child process?

2020-08-24 Thread vapnik spaknik via General Guile related discussions
>This does not answer your exact question, but such behavior can be >acheived very automatically by putting something like the following into >~/.ssh/config: > >  ControlMaster auto >  ControlPath ~/.ssh/socket/%C >  ControlPersist 5 > >This automatically creates master processes.  And the

Re: argument threading macros & combinators for guile

2020-08-06 Thread vapnik spaknik via General Guile related discussions
>On Thursday, August 6, 2020, 09:43:53 PM GMT+1, Linus Björnstam > wrote: >I have some old ones over here: https://hg.sr.ht/~bjoli/guile-threading-macros Thanks, that looks great Linus. Is there a guix package for them?

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