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