Folks,
I'm unable to get exec() to start a small SAS job on my RH 6.2 box.
(I've got file permissions set correctly) The code:
$command="sas -noterminal -log $SASProgDir$JobName.log ".
" -print $SASProgDir$JobName.lst $SASProgDir$JobName.sas";
print("Spawning '$command'<BR>\n"); // DEBUG STUFF!!!!
$ret=exec($command, $reply);
print("ret is '$ret'<BR>\n"); // DEBUG STUFF !!!
if($ret) {
print("<BR>Ouch. There was a system error spawning the program.");
print("<BR><B> '$prog'</B><BR>\n");
//print("$ret<BR>\n");
print("<pre>\n");
for ($i=0; $reply[$i]; $i++) {
print("$reply[$i]\n");
}
print("\n</pre>\n");
niceErrorMessage();
exit();
}
Results in the following SAS error:
ERROR: User does not have appropriate authorization level for library
SASUSER.
FATAL: Unable to initialize the options subsystem.
(SASXKINI): PHASE 3 KERNEL INITIALIZATION FAILED.
UNABLE TO INITIALIZE THE SAS KERNEL
The command above:
'sas -noterminal -log /usr/local/bin/apache/cgi-bin/sas/remotejob.log
-print /usr/local/bin/apache/cgi-bin/sas/remotejob.lst
/usr/local/bin/apache/cgi-bin/sas/remotejob.sas'
Can be executed without error in a command shell. Any clues as to why
PHP is choking my SAS job would be appreciated.
cur
--
Curt Seeliger
OAO Corporation, EPA/WED contractor
541/754-4638
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]