From: ara.t.howard@... Date: 2006-07-12T01:34:41+09:00 Subject: Re: Nuby Q: Daemonize (other materials have been read!) On Wed, 12 Jul 2006, Rogue Amateur wrote: > Rogue Amateur wrote: > [snip, in follow up] > >> Ok, ignorance again: >> 1) this means I can't do the fork within the script itself? >> 2) suppose the any_other_command isn't in the default ruby library? do >> I supply the full path to call? Will it allow me to pass along >> arguments? >> (I'll be trying it, as I await a response...) >> > [snip again] > > I tried it: > ./daemon.rb ./my_Script.rb > it dies without comment. > > running ./my_Script.rb, however, works as expected. Notions? it doesn't die - it starts the script as a daemon. check in top. regarding the setuid/gid bit - your local guru is simply wrong - you cannot do that from withint a script. google around a bit. your options are to use sudo, which is designed to do exactly this, or my _ruby code, which is a specialized version that accomplishs much the same thing. in either case you will require root privledges to setup the setuid binary or sudo permission if you go that route. cheers. -a -- suffering increases your inner strength. also, the wishing for suffering makes the suffering disappear. - h.h. the 14th dali lama