Tim Greer
12/18/2008 7:00:00 PM
Bob Smyph wrote:
> Tim Greer wrote:
>>
>> How to you mean? By updating it, parsing it from the file itself, or
>> by using finger, or?
>
> I believe we just need to load it into the session/channel so that we
> can use access/use command associated with the .profile
>
> We are trying to run a command through Ruby but it seems that we need
> certain environmental properties set (e.g. .profile) in order to do
> this. If we log onto the server through Putty this command works just
> fine.
Sorry, I got you. I read the post too quickly and for some reason I
thought you said .plan (I should have known that sounded strange).
Indeed, the .profile is only set to work with shell, in the shell env,
which is why CGI, web server APIs/modules and rails don't read it. Did
you need to set any environments or did you want to emulate or somehow
use the shell vars naturally (assuming you can trust the
user's .profile)?
--
Tim Greer, CEO/Founder/CTO, BurlyHost.com, Inc.
Shared Hosting, Reseller Hosting, Dedicated & Semi-Dedicated servers
and Custom Hosting. 24/7 support, 30 day guarantee, secure servers.
Industry's most experienced staff! -- Web Hosting With Muscle!