[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Backticks and timeouts

Allen Coley

7/23/2008 2:53:00 AM

I've never used Ruby before but need to try something tonight for sorta
presentation tomorrow.
The extent of my Ruby code is inside of RPG Maker XP (last minute thing
had like 1 day to show my idea) and when someone walks over a certain
tile it executes
result = `notepad.exe`

That's it. Problem is RPG Maker then times out if I don't immediately
close the notepad window. Is there any way to execute notepad.exe
without actually expecting a result back? Just launch and forget about
it?
--
Posted via http://www.ruby-....

4 Answers

Peña, Botp

7/23/2008 3:55:00 AM

0

RnJvbTogQWxsZW4gQ29sZXkgW21haWx0bzpkYXRhYml0QGRhdGFiaXQxMDEuY29tXSANCiMgVGhl
IGV4dGVudCBvZiBteSBSdWJ5IGNvZGUgaXMgaW5zaWRlIG9mIFJQRyBNYWtlciBYUCAobGFzdCAN
CiMgbWludXRlIHRoaW5nIGhhZCBsaWtlIDEgZGF5IHRvIHNob3cgbXkgaWRlYSkgYW5kIHdoZW4g
c29tZW9uZQ0KIyB3YWxrcyBvdmVyIGEgY2VydGFpbiB0aWxlIGl0IGV4ZWN1dGVzDQojIHJlc3Vs
dCA9IGBub3RlcGFkLmV4ZWANCiMgVGhhdCdzIGl0LiBQcm9ibGVtIGlzIFJQRyBNYWtlciB0aGVu
IHRpbWVzIG91dCBpZiBJIGRvbid0IGltbWVkaWF0ZWx5DQojIGNsb3NlIHRoZSBub3RlcGFkIHdp
bmRvdy4gSXMgdGhlcmUgYW55IHdheSB0byBleGVjdXRlIG5vdGVwYWQuZXhlDQojIHdpdGhvdXQg
YWN0dWFsbHkgZXhwZWN0aW5nIGEgcmVzdWx0IGJhY2s/IEp1c3QgbGF1bmNoIGFuZCBmb3JnZXQg
YWJvdXQNCiMgaXQ/DQoNCnRyeSBJTy5wb3Blbi4gDQoNCmVnLCB0cnkgcnVubmluZyB0aGUgZmYs
DQoNCiMtLWNvZGUNCmlvMT0gSU8ucG9wZW4gIm5vdGVwYWQuZXhlIg0KNS50aW1lcyBkbyBwdXRz
ICJpIGFtIGhlcmUiIGVuZA0KaW8yPSBJTy5wb3BlbiAibm90ZXBhZC5leGUiDQo1LnRpbWVzIGRv
IHB1dHMgImkgYW0gaGVyZSBhZ2FpbiIgZW5kDQojLS1jb2RlDQoNCnRoZSBhYm92ZSB3aWxsIGlu
dm9rZSAyIGluc3RhbmNlcyBvZiBub3RlcGFkIGFuZCBhbHNvIHJ1biB0aGUgMiBsb29wcyAobm8g
cGF1c2UgdGhlcmUpLg0KDQoobm90ZSwgeW91IG1heSBhbHNvIHVzZSB3aW4zMm9sZSB3IHdzaCBp
ZiB5b3Ugd2FudCB0byBmdWxseSBjb250cm9sIG5vdGVwYWRbZWcgaWYgeW91IHdhbnQgdG8gc2Vu
ZCBrZXlzdHJva2VzIHRvIGl0XSkNCg0KaHRoLg0KDQpLaW5kIHJlZ2FyZHMgLWJvdHANCg0KDQo=

Allen Coley

7/23/2008 4:10:00 AM

0


> io1= IO.popen "notepad.exe"

That was all I needed right there and it worked like champ.
--
Posted via http://www.ruby-....

Adam Whyte-Settlar

11/19/2008 11:04:00 AM

0


"Cory Bhreckan" <corybhreckan@nospam_verizon.net> wrote in message
news:7YAUk.2184$mi4.431@nwrddc02.gnilink.net...
> Adam Whyte-Settlar wrote:
>> "Yeah Rightie" <yeahrighty@left.centre.right> wrote in message
>> news:pl75i4pbup7jnjr79iiv3l8omavnlalguf@4ax.com...
>>> On alt.talk.royalty, Mon, 17 Nov 2008 20:01:58 +1000, Re:
>>> Controlled Demolition brought down WTC7 - not little fires in the
>>> centre...[was Re: Remembering the Noble War Dead, "Adam
>>> Whyte-Settlar" <ador@ble> wrote:
>>>
>>>> "Yeah Rightie" <yeahrighty@left.centre.right> wrote in message
>>>> news:du22i4h0d8ibcl9qktqs9ijf3b0t0oou30@4ax.com...
>>>>
>>>>>> He can post all he wants. If he continues to post insane lying
>>>>>> bullshit, I will continue to characterize it as such.
>>>>> IN YOUR OPINION ONLY.
>>>> No - in the opinion of any and everyone all over the globe who isn't a
>>>> complete deluded idiot.
>>> Who judges?
>>
>> People who aren't complete deluded idiots obviously.
>>
>>
>
> Hard to come by in Oz.

They're well spread out that's for sure.


Fred J. McCall

11/19/2008 1:28:00 PM

0

Yeah Rightie <yeahrighty@left.centre.right> wrote:

:On alt.talk.royalty, Tue, 18 Nov 2008 08:38:24 -0700, Re:
:Controlled Demolition brought down WTC7 - not little fires in the
:centre...[was Re: Remembering the Noble War Dead, Fred J. McCall
:<fjmccall@gmail.com> wrote:
:
:>Yeah Rightie <yeahrighty@left.centre.right> wrote:
:>
:>:On alt.talk.royalty, Sun, 16 Nov 2008 12:46:43 -0000, Re:
:>:Controlled Demolition brought down WTC7 - not little fires in the
:>:centre...[was Re: Remembering the Noble War Dead, "Westprog"
:>:<westprog@hottmail.com> wrote:
:>:
:>:>Yeah Rightie wrote:
:>:>> On alt.talk.royalty, Thu, 13 Nov 2008 05:14:09 -0700, Re:
:>:>> Controlled Demolition brought down WTC7 - not little fires in the
:>:>> centre...[was Re: Remembering the Noble War Dead, Fred J. McCall
:>:>> <fjmccall@gmail.com> wrote:
:>:>>
:>:>>> Michael O'Neill <onq@bwahahaha.indigo.ie> wrote:
:>:>>>>
:>:>>>> Watch the total collapse of WTC7 allegedly caused by several small
:>:>>>> fire at its centre.
:>:>>>>
:>:>>>> Its obvious, not horseradish to conclude that this occured solely
:>:>>>> via controlled demolition.
:>:>>>>
:>:>>>
:>:>>> Yeah. All it takes to arrive at your conclusion that it was
:>:>>> destroyed by controlled demolition is a massive dose of ignorance
:>:>>> coupled with a few hits off a crack pipe...
:>:>>
:>:>> Why are you so desperate to shut down his posts?
:>:>> Everyone has a right to post and many will post opinions contrary
:>:>> to ours.
:>:>
:>:>Because it's a tale told by an idiot, full of sound and fury, signifying
:>:>nothing.
:>:>
:>:>> It's a mark of maturity to let people post and defend their right
:>:>> no matter how contrary their beliefs are to ours.
:>:>
:>:>It's a sign of common sense to ignore lunatic jabberings, since there is far
:>:>more bad information out there than it would ever be possible to sift
:>:>through.
:>:>
:>:>Anybody can post anything on usenet. Nobody reads everything. We all make
:>:>choices, and pointing out the rubbish to help other people inform their
:>:>selections isn't censorship, it's being helpful.
:>:
:>:In your opinion, not in mine.
:>:I would prefer to get a lot of extraneous noise than have a
:>:controlled and censored forum, which is what this will turn out
:>:to be if you scare everyone away.
:>:
:>
:>In other words, you want to censor anyone disagreeing with the loons.
:>
:>Good luck with that...
:
:How you can get the absolute opposite meaning from my post
:explains a lot about your method of reasoning.
:

Well, we're sort of constrained to the actual words you use and how
you assemble them. We can't read your mind. Your transmitter is far
too weak.

--
"Some people get lost in thought because it's such unfamiliar
territory."
--G. Behn