$? value


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting $? value
# 1  
Old 04-17-2008
$? value

Hi all!!

I have a script that evaluates the exit status of different commands executed along the script with $? variable, because it has to redirect to another script when it find "1" exit status.
When i run the script from console, everything goes on and the behaviour and flow are correct. The evaluation of $? works...
The problem is when i run the script from my browser, via CGI... I have tried to write the $? value on a file, and it's empty. Do you know why? I'm running my application under Appweb...

Thanks in regard!!!!

clara
# 2  
Old 04-18-2008
Seems like nobody can guess why. Perhaps if you explained how exactly the CGI gets invoked, and maybe show the pertinent snippet of code, it would bring up some ideas.
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question