Re: Accessing Python script with ColdFusion

From: David C. Fox (davidcfox_at_post.harvard.edu)
Date: 12/07/03


Date: Sun, 07 Dec 2003 15:40:04 GMT

Michael Wood wrote:
> I've tried using a timeout of 1 and 3. It didn't make any difference. I
> also just tried setting the outputFile argument to a file in a folder
> that I know is accessible to CF. It created an empty file. So no joy there.
>
> Mike
>
> At 07:07 PM 12/6/2003, you wrote:
>
>> On Sat, Dec 06, 2003 at 02:52:59PM -0800, Michael Wood wrote:
>> > We're using mailman (python based) to do mailing lists. I'd like to
>> write a
>> > ColdFusion interface to the command line scripts for managing list
>> > membership but there's a problem. I can run the scripts from the Linux
>> > command line with no problem. But when I run the scripts via the
>> CFExecute
>> > tag in ColdFusion there isn't any output returned. That isn't entirely
>> > true, if I use the -h argument the help screen displays okay but any
>> other
>> > sort of output never turns up. And it doesn't return an error so it
>> seems
>> > as though the script is executing or starts to execute but the output
>> > buffer never flushes to the standard output or something like that...

There might be some problem with file permissions or the path to the
script preventing the script from running when invoked from ColdFusion.
  Have you verified that the script is actually running? (Try having
the script, rather than CF, write to a file in a directory with global
write permission).

P.S. I assume you are the same person who posted a job with a similar
question on IT moonlighter. If so, are you just looking for a solution
to this problem, or is there other work you want done?

David



Relevant Pages

  • Re: Securing Microsoft SQL Enterprise Manager
    ... >>What do you say I should use to restrict access to SQLmmc.dll? ... >>Is it Active Directory or ACLS? ... you may want to consider writing a simple script to change the ... > file permissions and firing the script as part of a one off logon ...
    (microsoft.public.cert.mcdba)
  • Re: exec() doesnt work on C/C++ executables
    ... It seems really wierd to me why the script doesn't execute a binary ... as well as file permissions on the ... libraries. ...
    (comp.lang.php)
  • Re: setting file permissions on a web server
    ... > method you use to transfer files the file permissions may or may not ... > you transfer first and chmod on the server. ... Since I'm running Windows, I ... What I would do is write a script ) ...
    (comp.lang.python)
  • Re: Search Machine for Ubuntu machine
    ... java or java script or python or some other script or language but not ... system regardless of ownership. ... compress its database to make searching faster, ... check file permissions ...
    (Ubuntu)
  • Re: Morphix PHP execution
    ... > here are the file permissions for 'test.php' ... programs are installed with user and group being set to root ... Next thing is checking what 'which php' tells you and ... sticking this into the script (BTW I heard that some shells don't like ...
    (comp.os.linux.development.apps)