Posted by Steve on 10/21/03 11:28
> I couldn't run the script as a standalone command-line script because
> the scripts are hosted on a remote site and I do not have privileges
> outside of my account which resides within the framework of the
> document root. It is a single back-end batch processing script that
> must exist within CGI because CGI, as well as the user, are within the
> group that has the privilege to access a group-accessible XML file
> (this cannot be altered as it is set up by the hosting provider across
> the board for all users on his hosting service).
Would this work?
<?php
header( "Content-type:text/plain" );
exec( "/path/to/mytclscript.tcl arg1 arg2 arg3", $res );
print "results:\n\n";
for( $i=0; $i < count($res); $i++ )
{
print $res[$i] . "\n";
}
?>
---
Steve
Navigation:
[Reply to this message]
|