[cs615asa] /var/www/cgi-bin/hw5-2.cgi: /tmp/1BFClp: not found

Neel Patel npate27 at stevens.edu
Sun Apr 8 23:27:36 EDT 2018


Changing your hashbang to #!/bin/sh instead of #!/usr/pkg/bin/bash should
fix this, as the server seems to be using sh instead of bash.

On Sun, Apr 8, 2018 at 11:08 PM, bsakthiv <bsakthiv at stevens.edu> wrote:

> When I use CURL I get this:
>
> #curl -H 'Expect: ' --data-binary @./wikistats
> http://ec2-54-145-67-75.compute-1.amazonaws.com/cgi-bin/hw5-2.cgi
> Upload complete. Now running some tests.
> Depending on what you're doing in your script,
> this might take a moment.
>
> Ok, here's your script's stdout and stderr...
> --------
> /var/www/cgi-bin/hw5-2.cgi: /tmp/EIrvOh: not found
> --------
> Done executing your script.
>
> Incorrect output.
> --- your-output 2018-04-09 03:02:48.000000000 +0000
> +++ expected    2018-04-09 03:02:50.000000000 +0000
> @@ -1 +1,5 @@
> -/var/www/cgi-bin/hw5-2.cgi: /tmp/EIrvOh: not found
> +Unique objects: 2223243
> +Most frequent object: en
> +Total bytes transferred: 267566713402
> +Requests per second: 3099.33
> +Largest object: User:Mojoworker/SuggestBot
>
>
>
> I have my hashbang as firstline ----     #!/usr/pkg/bin/bash
> But When I execute my script using ---   ./wikistats wikidata.gz  I get
> correct output
>
>
>
>
>
> On 04/08/2018 21:14, Xuyang Weng wrote:
>
>> Thank you, sir. I got it!
>>
>> On Sun, Apr 8, 2018 at 4:57 PM, Jan Schaumann <jschauma at stevens.edu>
>> wrote:
>>
>> Xuyang Weng <xweng at stevens.edu> wrote:
>>>
>>> /var/www/cgi-bin/hw5-2.cgi: /tmp/1BFClp: not found
>>>>
>>>
>>> Chances are that you do not have a valid hashbang in your script.
>>>
>>> What's the first line?
>>>
>>> -Jan
>>> _______________________________________________
>>> cs615asa mailing list
>>> cs615asa at lists.stevens.edu
>>> https://lists.stevens.edu/mailman/listinfo/cs615asa [1]
>>>
>>
>>
>>
>> Links:
>> ------
>> [1] https://lists.stevens.edu/mailman/listinfo/cs615asa
>>
>> _______________________________________________
>> cs615asa mailing list
>> cs615asa at lists.stevens.edu
>> https://lists.stevens.edu/mailman/listinfo/cs615asa
>>
> _______________________________________________
> cs615asa mailing list
> cs615asa at lists.stevens.edu
> https://lists.stevens.edu/mailman/listinfo/cs615asa
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.stevens.edu/pipermail/cs615asa/attachments/20180408/1f652a7d/attachment.html>


More information about the cs615asa mailing list