Heesob Park
5/6/2009 1:29:00 PM
Hi,
2009/5/6 Bigmac Turdsplash <i8igmac@aim.com>:
> Nobuyoshi Nakada wrote:
>> Hi,
>>
>> At Wed, 6 May 2009 10:43:23 +0900,
>> Bigmac Turdsplash wrote in [ruby-talk:335871]:
>>> so, im only a few days into ruby, im working on some tcp and there is a
>>> problem with my client.rb... if str =3D=3D ???? this if statement is al=
ways
>>> skipped and im not sure why?
>>
>> #gets method returns a string with a newline if you ended the
>> input with enter. =C2=A0You can chomp it or use double Ctrl-D
>> instead of enter.
>
> Oh, wow... a bit confused at first but then i googled ruby chomp and
> then it made sence, when you press enter \n
>
> if string.chomp =3D=3D "mike"
> =C2=A0 print "hello mike\n"
> =C2=A0 system("calc.exe")
>
> # how can i execute calc.exe and continue with the script well calc is
> still running????
>
Try
system("start calc.exe")
Regards,
Park Heesob