How call scripts in windows using something like 'nohup' in linux

Hi,

I came from linux into windows, I was calling all scripts using ‘nohup’
linux command. I’m trying to port several scripts to windows service but
I
can’t call them if they use ‘puts’. So I was thinking in some way to do
this, I don’t like to change all code, I mean change every ‘puts’ to
‘file.puts’. Any suggestion?

Thanks

On May 8, 11:01 am, “Pablo Q. - Ahora en: TicoWarez.com/TicoWarez.org/
TicoWarez.net/TicoWarez.info/[email protected] wrote:

Hi,

I came from linux into windows, I was calling all scripts using ‘nohup’
linux command. I’m trying to port several scripts to windows service but I
can’t call them if they use ‘puts’. So I was thinking in some way to do
this, I don’t like to change all code, I mean change every ‘puts’ to
‘file.puts’. Any suggestion?

Reopen STDOUT and STDERR on a file. Then you don’t have to change your
‘puts’ statements.

Regards,

Dan

Hi,

Pablo Q. - Ahora en: TicoWarez.com/TicoWarez.org/T wrote:

Hi,

I came from linux into windows, I was calling all scripts using ‘nohup’
linux command. I’m trying to port several scripts to windows service but
I
can’t call them if they use ‘puts’. So I was thinking in some way to do
this, I don’t like to change all code, I mean change every ‘puts’ to
‘file.puts’. Any suggestion?

Thanks
Quote from Programming Ruby:

In these cases, you’ll want to use rubyw.exe. It is the same as ruby.exe
except that it does not provide standard in, standard out, or standard
error, and does not launch a DOS shell when run.

http://phrogz.net/ProgrammingRuby/win32.html

Regards,

Park H.