On Tue, 30 Nov 2004 11:13:04 -0400, gijs meirmans
<[EMAIL PROTECTED]> wrote:
> In the documentation of cfexecute the effective user is mentioned.
> I like to know how to find out the user who executes the executable fired by 
> cfexecute. I think this is the effective user, but when i try to found out 
> about it on the web I could not find a thing about it.
> 
> Can anybodie help me with this, i like to use scp to transfer some files from 
> the databaseserver server to the aplicationserver server.
> 

It's the user that the coldfusion process (or jrun if you're using the
J2EE version) is running as.

However, I would strongly advise that you stay away from cfexcute on
unix systems if you can. Because of the way the fork() method was
implemented on unix systems (which is what cfexecute calls under the
hood to run the external process) it duplicates the amount of memory
of the calling process to run the external process, which is crazy.
So, for example, if your JRun process is currently taking up 1 GB of
RAM (a pretty common JVM size), then cfexecute will run the external
process using 1 GB of RAM, which will very quickly throw an Out of
Memory exception. I learned this the hard way so I figured I'd save
you the hassle down the road. In single-user testing you might not see
the error because you might have enough swap space to create this
second process, but any more than a couple of users will bring your
system to a grinding halt. So I'm not sure what you're trying to do,
but I would find another way to do it. Mind you, this is not
Macromedia's problem -- it's a UNIX problem that is just a known
implementation issue.

Regards,
Dave.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185680
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to