exec() won't start SAS job

From: Date: Fri, 02 Feb 2001 23:27:05 +0000
Subject: exec() won't start SAS job
Groups: php.general 
Request: Send a blank email to php-general+get-37921@lists.php.net to get a copy of this message
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 seeliger.curt@epa.gov

« previous php.general (#37921) next »