Hi Lee,

On 7/19/07, John Mettraux <[EMAIL PROTECTED]> wrote:
>
> You're right. What about a file semaphore (IIRC, as you suggested
> before). Or simply something that notices that the console is being
> triggered and not the application itself. $0 ?
>
> ---8<---
> sonanda:~/openwfe-ruby mettraux$ irb
> irb(main):001:0> puts $0
> irb
> => nil
>
> sonanda:~/openwfe-ruby mettraux$ ruby -e "puts $0"
> -e:1: undefined local variable or method `bash' for main:Object (NameError)
> --->8---

__FILE__ is what I was thinking about. My second $0 test is stupid,
it's evaluated by bash before being passed to ruby...

"if __FILE__ == $0" might help.


Cheers,

-- 
John Mettraux   -///-   http://jmettraux.openwfe.org

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"OpenWFEru users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/openwferu-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to