similar to: Howto start a unix Tail -f within Rails

Displaying 20 results from an estimated 30000 matches similar to: "Howto start a unix Tail -f within Rails"

2006 Nov 02
2
Rescue don't work on web applications
Hi, I''ve a Rails application who starts a Ruby script . The script is made via Web -> database. Than you can select a script to start via a database list. Problem: In case of errors , I like to start a rescue showing the users the problems. render(:text => "<pre>" + CGI::escapeHTML(` begin /home/luc/radrails/cpe/public/startq_test.rb
2006 May 17
0
Running shell commands from Rails.
Hi, I want to be able to run shell commands from Rails. I''m on the Windows platform. Would the code below work on Windows if IO.popen is called? If not, how would I run a shell command in Windows in order to run the ffmpeg program? ** *-----------------------------------* *def encodeVideo opts, stream IO.popen("ffmpeg #{opts}", ''w''){ |io| io.puts stream}
2013 Nov 06
1
Re: Calling 'virsh' from within a hook script - avoid deadlock?
Yes.. I saw that, but I have to :) The issue was solved by converting the hook to Python and using 'subprocess.Popen'. deadlock is gone, all looks good. Regards Shlomi -----Original Message----- From: Michal Privoznik [mailto:mprivozn@redhat.com] Sent: Wednesday, November 06, 2013 5:17 PM To: TSADOK, Shlomi (Shlomi) Cc: libvirt-users@redhat.com Subject: Re: [libvirt-users] Calling
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
2006 Jun 30
1
writing a plugin for LDA to chain Unix pipes
Hi, I've spent some part of the last week on trying to figure out whether dovecot LDA meets our requirements for a new mail server infrastructure (the IMAP and POP servers, as well as the SASL backend certainly do; thanks a lot!). The one thing that's holding me back is that we need per-user integration of SpamAssassin and some other, custom content filters, all of which are implemented
2006 Nov 04
0
Howto ? :: multi notes for same product in rails
Hi, I want to create multi notes for one item. How can I do so in Rails. Steps I want. 1- create a new item 2- write in the edit screen name,desc,.... 3- Add some notes to this item ( from 1 to 20 notes) 4- Save the new item. Any good link or nice document ? Thanks Henrik E -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Feb 08
0
subversion AND gem rails howto?
I have been using rails on Debian Sarge since May of last year. I initially gem installed rails as root and since then I have been gem updating the installation. I have had no trouble with the installation or development. Now feel that I''d like to use svn to get edgerails to be able to use nifty features such as RJS. Some of the threads on the subject talk about svn:externals in the
2006 May 26
1
Kernel#system Kernel#` - Is anyone using these in Rails?
Since my previous question didn''t get much attention, I thought I''d make the subject more expressive. I didn''t realize the list had this much traffic. Is anyone using system or "backquote" to run commands in Rails? These work fine in webrick, but both return nil when running in Apache FCGI. In CGI mode, system seems to work, but backquote doesn''t.
2006 Nov 04
0
[Question} how best to use attribute driven db with Rails
Dear Rails, I would like to pose a question to Mike Hanson (June 20th thread)... I am a Technical Recruiter, and I am having a difficult time understanding the difference between building attribute-driven databases vs. building data-driven databases. Can you help me understand how these two differ. I am having a difficult time speaking to candidates about their experience with
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
2007 Jan 04
3
tail -f /var/log/maillog error
Hi, I am ruunig a Mailserver (Sendmail) on RedhHat 9, When I type the below command, it shows the logs for mail. tail -f /var/log/maillog But , Since this morning, It shows nothing. why, help needed. -- Thank you Indunil Jayasooriya -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Jul 12
1
tail -f and periodically call remote
Is there some way to tail -f a file and print whatever tail -f gets to the browser on the client side. I''m thinking periodically call remote can do it. Is there some shortcut method, or does one have to store the cursor line that they read up to from the file last time, and then start reading again from the new cursor on the next periodically call remote. thanks -- Posted via
2002 Oct 09
1
tail -f & the missing data:2.2.5, 2.2.19-6.2.16,
Hi, I have a strange problem viewing data in real time. I wonder can anyone help? I run tail -f on a file which is served by a windows 2000 machine. I start a simple program running on windows 2000 which writes numbered lines of text to this file. I notice that tail -f is missing some of the lines. If I edit the file afterwards the data is there it's just that tail seems to miss bits of it
2011 Aug 15
0
[PATCH node] Don't start ntp daemons until networking is started
- Default NETWORKING=no in /etc/sysconfig/network - Update to yes when configuring network through TUI or firstboot - After configuration in TUI, (re)start ntp daemons rhbz#675870 Signed-off-by: Mike Burns <mburns at redhat.com> --- recipe/common-post.ks | 6 ++++++ scripts/network.py | 10 +++++++++- scripts/ovirt-config-networking | 1 + 3 files
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
2006 Jun 22
2
Embed a Rails app within another?
I''m looking for a solution where I could load and render pages from one Rails application within another. I''m looking through the Rails code right now to see if this would even be remotely possible. Does anyone have any ideas? I know the obvious answer would be to proxy the app via Net::HTTP, but this is undesirable because: - I don''t always want to depend on having
2006 Mar 05
0
Can I execute DML from within Rails?
Is it possible to execute a DML statement against a MySQL database from within Rails? I have a table I''m using for batch processing. It needs to be truncated to reset the primary key before each batch insert statement. I looked at the API here: http://api.rubyonrails.com/classes/ActiveRecord/ConnectionAdapters/DatabaseStatements.html#M000532 and didn''t notice anything that
2002 Jul 04
3
tail -f doesn't work on a smbfs mount
I mount a WinNT share using a samba client version 2.2.5: smbmount -t smbfs -o username=user //ntserver/share /logs Then I want to watch a log generated by Internet Information Server (IIS) that grows continually: tail -f /logs/zzz.txt I can see the last lines in file zzz.txt the first time, but I don't get the new lines that are appended in such file. From any windows station I have
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/..
2002 Sep 19
1
ssh and popen-- broken pipe
Hi, My application uses popen to execute UNIX commands. After I replace rsh with ssh, it stopped working. I have made a test C code to reproduce the problem as attached in this email. In the test program, I called popen for ssh command and then pclose right away. I got the following error: kirk 588$ a.out Write failed flushing stdout buffer. write stdout: Broken pipe Any idea what is