Ok,

This is from the wisdom of that which is Spike.

1. If you want to pass multiple arguments to cfexecute you need to pass them
as an array. Each argument is a separate array element, and the arguments
should be added to the array in the order that you want to user them.
2. If you want to debug your cfexecute call, the easiest way is to specify
an outputfile attribute.

Example:

<cfset args = arrayNew(1)>
<cfset args[1] = "username">
<cfset args[2] = ">>">
<cfset args[3] = "/path/to/file/space.log">

<cfexecute name="/path/to/file/user_web_usage.plx" arguments="#args#"
timeout="5" outputfile="/path/to/file/foo.log" />

Spike.

We now return you to your scheduled programming.

"Brad Apps" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
>
> Hey Guys,
>
> Got a funny one for you:
>
> I used to use this code to get the disk usage for our clients web space
> used:
>
> <cfsavecontent variable="homespace">
> <cfexecute name="du -hs /home/#homedir#" timeOut="1"></cfexecute>
> </cfsavecontent>
>
> This worked fine until we decided we wanted to calculate the users mail
> directory size which doesn't have permissions for apache (which CF is
> running as)to read the size.  Therefore we decided to get a perl script
> which can be run as apache, which inturn changes the uid to the particular
> user to get all of the right sizes and out put them.  When i run the
> script as apache from the command line ./user_web_usage.plx 'username', it
> works fine.  but when i put it in a cfexecute tag it outputs nothing.
>
> Example:
>
> <cfsavecontent variable="homespace">
> <cfexecute name="/path/to/file/user_web_usage.plx 'username'"
timeOut="1"></cfexecute>
> </cfsavecontent>
> #homespace#
>
> I tried extending the timeout and using the arguments variable of the
> cfexecute tag to include the username with no joy.  Any suggestions would
> be greatly appreciated.  Or any recommendations on how we should do this.
>
> Thank you.
>
>



---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/

Reply via email to