Re: result codes from Bash CGI

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Monday 15 February 2021 at 17:36:46, Claude Warren wrote:

> Greetings,
> 
> I am playing with Bash based CGI.

Maybe if you give us an example of exactly how you are doing this, it would 
help us to answer your question:

> I can see how to generate any result code other than 200.

I assume a "not" is missing from that sentence :)

> Is there a way to set the result code to anything else?  If so how?  Is
> there documentation?

There are plenty of examples of CGI scripts return other status codes, 
although I've no idea how many might be written in bash.

My guess is that you might need to set the exit code of your script to 
something specific, but as I say, show us what you're doing so far and we might 
have a better idea.


Antony.

-- 
Late in 1972 President Richard Nixon announced that the rate of increase of 
inflation was decreasing.   This was the first time a sitting president used a 
third derivative to advance his case for re-election.

 - Hugo Rossi, Notices of the American Mathematical Society

                                                   Please reply to the list;
                                                         please *don't* CC me.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux