The exact requirement is, the rails app will be hosted in the lan
itself. And when the user/employee opens the home page of the
application, an action should be triggered and it should fetch the
logged in user name(here logged name means the user who is using the
machine), and the same thing(saying so and so user logged in) should
be noticed to the admin.
One idea i am having is if it is a linux machine i have to use the
'who' command and parse the output. but what for windows system? And
what are the ways to execute the linux commands in a rails app?
Anybody come across this sort of situation already?
On Dec 26, 3:54 pm, Gautam Pai <gomzi....@gmail.com> wrote:
> request.env['REMOTE_HOST'] should be the closest to what you want.
>
> Gautam Pai
>
> On Mon, Dec 26, 2011 at 3:38 PM, sandip ransing <san...@funonrails.com>wrote:
>
>
>
>
>
>
>
> > observe request parameters but i dont think its giving machine name
>
> > On Mon, Dec 26, 2011 at 3:29 PM, venkata reddy <venkatareddy...@gmail.com>wrote:
>
> >> Hi All,
> >> Can anybody tell me, is there any way that i can find the name
> >> of the computer/machine rather than ip of the machine, from where a
> >> user is accessing my rails application?
>
> >> I was asked to do some research on this...please help.
>
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "Ruby on Rails: Talk" group.
> >> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> rubyonrails-talk+unsubscribe@googlegroups.com.
> >> For more options, visit this group at
> >>http://groups.google.com/group/rubyonrails-talk?hl=en.
>
> > --
> > sαη∂ιρ Rαηѕιηg
>
> > ---
> >www.funonrails.com
>
> > twitter, github @sandipransing
> > skype sandip.ransing
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Ruby on Rails: Talk" group.
> > To post to this group, send email to rubyonrails-talk@googlegroups.com.
> > To unsubscribe from this group, send email to
> > rubyonrails-talk+unsubscribe@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/rubyonrails-talk?hl=en.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment