similar to: Interactive Processing of print

Displaying 20 results from an estimated 60000 matches similar to: "Interactive Processing of print"

2006 Jul 05
13
interactive web app
I have an arbitrary program written in any language, and it is a binary (ie foo.exe), that will print out output to stdout constantly every 3-5 seconds. Is there a way that I can have a web application designed in rails that will print the output of this program to the browser every 3-5 seconds in realtime, preferably even in an ajax manner. thanks -- Posted via http://www.ruby-forum.com/.
2007 Mar 01
0
No subject
(yes, It''s horrible) IO.popen in terms of the non-blocking write functions implemented in ruby 1.9 or 1.8.5. However, that''s not necessarily such a great idea. Alternatively, you could use a signal-handler for SIGCHLD and still use IO.popen, but it seems difficult to ensure that you capture all of the output from the command up until the point that the process exits. You might
2004 Nov 18
1
Forward from Laurent Julliard
Let''s try that again, without Hotmail''s crappy formatting. Dan, I am one of the developer of the FreeRIDE project (the Ruby IDE) and I''m in charge of the FreeRIDE debugger with which we have had a number of problems on Windows now mostly due to the clunky implementation of IO/Process/Signal stuff on Win32. I recently came across your Win32 utils package and
2004 Nov 18
0
FW: problem with win32 waitpid
Forward from Laurent Julliiard. Any suggestions anyone? Dan >From: Laurent Julliard <Laurent.Julliard@xrce.xerox.com> >Reply-To: laurent@moldus.org >To: djberg96@hotmail.com >Subject: problem with win32 waitpid >Date: Thu, 18 Nov 2004 08:49:51 +0100 > >Dan, > >I am one of the developer of the FreeRIDE project (the Ruby
2017 Apr 20
0
system/system2 and open file descriptors
In addition to the issue of a child process holding onto open files, the child process can also manipulate a file descriptor in a way that affects the parent process. For example, calling lseek() in the child process will move the file offset in the parent process. Here is a set of commands that demonstrates it. They can be copied and pasted in a terminal. What it does: - Creates C program that
2010 Oct 22
0
[PATCH node] First draft of replacing some of the ovirt-config-* scripts with python equivalents.
Putting these out for feedback and comments. These will eventually support the new newt/python based ui for installation/configuration storage.py functions will be moved under a class for better data portability before final version --- scripts/ovirtfunctions.py | 672 +++++++++++++++++++++++++++++++++++++++++++++ scripts/storage.py | 451 ++++++++++++++++++++++++++++++ 2 files
2002 Nov 25
0
Linux and Samba Code
Here is an executable that would allow a user to change the linux and SMB passwords simultaneously. The website indicated in the comments had some problems in the code, but they are fixed in the cpasswd.c file which is below and also attached. Hope that this helps others. The code is a fix, not a solution. it only works from the command prompt, but it helps with keeping linyx and Samba
2009 Nov 19
0
Printing labeled summary to text file ?
Dear List, I am trying to run a mixed model which, on the R console, prints output as follows: [1] "Marker" [1] "perm no." [1] NA Linear mixed model fit by REML Formula: peg.no.prm ~ 1 + (1 | family/f) Data: modeldf AIC BIC logLik deviance REMLdev 3119 3134 -1555 3112 3111 Random effects: Groups Name Variance Std.Dev. f:family (Intercept) 0.0
2011 Jan 26
1
print() required sometimes in interactive use of console
Surprising behavior: Most R users are aware that print() must be used inside functions to gain output on the console. Apparently, print() is sometimes required when interactively using the console. For example, the followingmay be entered into the R console with different results. sample(1:8,8) #prints a permutation of 1 to 8 for(i in 1:5) #does not sample(1:8,8)
2017 Apr 18
2
system/system2 and open file descriptors
It seems that the system() and system2() functions don't close file descriptors between the fork() and exec() (on Unix platforms, of course). This means that the child processes inherit open files and socket connections. Running this (from a terminal) will result in the child process writing to a file that was opened by R: R f <- file('foo.txt', 'w') system('echo
2007 Jan 17
2
Using IO.popen to capture stderr?
Hello, I''m trying to write a utility to run an external process and capture it''s stderr. It seems that IO.popen only lets me read the stdout. Any tips for how to read stderr? Mike snippet of code... def process_file(filename) @filename = filename puts "Processing: " + @filename cmdline = "ffmpeg -i " + @filename ffmpeg =
2009 Jan 27
0
Pausing processing into an interactive session
Hi all, As a possibly silly request, is it possible to interactively pause a R-calculation and do a browser(), say, without browser or other debug handlers being explicitly included in the code? Imagine the following situation: You write up a big calculation for R to calculate. We are talking hours here, or worse. A few hours into the calculation, you decide that you want to check on how
2014 Jan 15
1
ControlMaster auto and stderr
I use ControlMaster auto (along with ControlPath) in my ssh config and find it very handy. I have noticed an annoying behavior, though: it seems that if there is no existing master connection and ssh creates a new one, the master connection process that is started has its stderr left open. This has manifested itself in two ways so far: (1) When using ssh day-to-day, I may be doing some work and
2005 Feb 01
1
Process to both write to and read from (pipe/fork)?
Dear all, I would like to start a process from an R program in such a way that I can both feed input into the process and read the process's output. It seems that in R, I can have a pipe for writing into another process's input or a pipe for reading from another process's output, but not both. Doing both necessitates forking, such that the child can start the external process and
2005 Feb 01
1
Process to both write to and read from (pipe/fork)?
Dear all, I would like to start a process from an R program in such a way that I can both feed input into the process and read the process's output. It seems that in R, I can have a pipe for writing into another process's input or a pipe for reading from another process's output, but not both. Doing both necessitates forking, such that the child can start the external process and
2016 Dec 19
2
CentOS 7 and systemd: SysV initscript: how detect boot vs. interactive use?
James Hogarth <james.hogarth at gmail.com> wrote: >On 18 Dec 2016 10:59, "whitivery" <co55-sy1t at dea.spamcon.org> wrote: > >Moving from CentOS 5 to CentOS 7, discovered that a test in a SysV >initscript for whether it is running interactively, instead of at boot >time, no longer works. > >Under CentOS 7 / systemd, is there some way for the initscript
2011 Sep 06
1
[Bug 8440] New: rsync goes interactive on missing --password-file
https://bugzilla.samba.org/show_bug.cgi?id=8440 Summary: rsync goes interactive on missing --password-file Product: rsync Version: 3.1.0 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P5 Component: core AssignedTo: wayned at samba.org ReportedBy: rsync-bugzilla at
2005 Mar 12
1
popen() fread() system()
I''ve got a client who''s recently been moved onto a CentOS4 machine from a 3.x and is writing: "It looks like there''s one remaining problem now; at several points in the PHP part of the dating software, C- binaries are called using popen(). The binaries work correct (tested at the command line with the proper arguments) The popen() retrieves the correct command
2006 Jan 05
4
Apache2 and popen
I''m running Apache2 on windows and I have a controller that issues a popen. class FileController < ApplicationController def index f = IO.popen("dir") @files = f.readlines end end This works using webbrick but on Apache produces... ---------- Errno::ENOENT in File#index No such file or directory - dir RAILS_ROOT: C:/www/teensymud/public/../config/..
2004 Dec 23
0
Registration Failure Directly related to realtime
Apparently, the realtime system in asterisk is faulty. Implementing realtime, begins a host of seeding messages along with registration messages visible at the CLI prompt. This is not the case with .conf file configuration Unfortunately, it is not clear where the bug originates but is shows it's head while calling the register_verify function, (which there are 2 one in chan_sip.c and one in