🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.ruby
Article #314

Re: Run shell script from Rails

#314
From: Przemysław Kowalczyk
Date: Tue, 21 Nov 2006 07:27
15 lines
1240 bytes
On Tue, 21 Nov 2006 00:00:51 +0100, misiek <michal_augustyniak@gazeta.pl>  
wrote:
>>  result = `komenda -opcja1`
>>
> czy jest jakis sposob na wyknonanie commendy np:
> comennd = system("cat /etc/fstab")
>
> i wysiwetlenie zawartosci w przegladarce
> render_text commend daj mi true/false

comennd = `cat /etc/fstab`
render_text comennd

pzdr
	szeryf
Technical Details
Message-ID: <op.tjcu0kgrhwe0a4@negative-361apc>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.task.gda.pl!not-for-mail
References: <ejt031$4bd$1@inews.gazeta.pl> <ejt1n6$2h2$1@news.task.gda.pl> <ejt4bl$njv$2@news.task.gda.pl> <ejtc33$sst$1@inews.gazeta.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.task.gda.pl!not-for-mail
From: Przemysław Kowalczyk <szeryf@negativeiq.pl>
Newsgroups: pl.comp.lang.ruby
Subject: Re: Run shell script from Rails
Date: Tue, 21 Nov 2006 08:27:46 +0100
Organization: CI TASK http://www.task.gda.pl/
Lines: 17
Message-ID: <op.tjcu0kgrhwe0a4@negative-361apc>
References: <ejt031$4bd$1@inews.gazeta.pl> <ejt1n6$2h2$1@news.task.gda.pl> <ejt4bl$njv$2@news.task.gda.pl> <ejtc33$sst$1@inews.gazeta.pl>
NNTP-Posting-Host: xdsl-10757.wroclaw.dialog.net.pl
Mime-Version: 1.0
X-Trace: news.task.gda.pl 1164094234 15192 84.40.237.5 (21 Nov 2006 07:30:34 GMT)
X-Complaints-To: abuse@news.task.gda.pl
NNTP-Posting-Date: Tue, 21 Nov 2006 07:30:34 +0000 (UTC)
User-Agent: Opera Mail/9.02 (Win32)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit