From: Steve Litt Date: 2005-12-18T15:02:20+09:00 Subject: Re: Spawning On Sunday 18 December 2005 12:36 am, Steve Litt wrote: > On Sunday 18 December 2005 12:09 am, James Edward Gray II wrote: > > On Dec 17, 2005, at 10:56 PM, Steve Litt wrote: > > > I want to translate it to Ruby, but I can't find an > > > equivalent to Perl's setsid anywhere in the Kernel module. > > > > I believe you are looking for Process.setsid. > > > > ri Process.setsid > > > > James Edward Gray II > > Thanks James. > > That works! I can run it from a terminal, close the terminal, and > the spawned program containues running. This is the exact > behavior I need. However... > > I have one other problem. Somehow I cannot use exec on my array > of arguments -- only on the very first one (the program name). > This means I can't pass arguments to the spawned program. I got it to work with a kludge: exec argarray.join(' ') I converted the array of arguments to a string, and it worked. But it should have worked the other way too. What am I missing? SteveT Steve Litt http://www.troubleshooters.com slitt@troubleshooters.com