简体   繁体   中英

CGI bin bash script not workin

I have a bash script in a cgi-bin that is getting an error. I have another script in the CGI-Bin that works fine. the script works fine when ran from the server, but does not work when ran from the webpage. My assumption is CGI-Bin is setting up correctly since the other script runs. Here is the file level permissions on the file. I gave the non-working cgi full access to see if it worked. Stress.cgi work but increase.cgi does not work.

-rwxrwxrwx 1 root     root     125 Jun  5 00:40 increase.cgi
-rwxr-xr-x 1 ec2-user ec2-user  40 Jun  3 16:47 stress.cgi
#!/bin/bash
aws autoscaling update-auto-scaling-group --auto-scaling-group-name ##### --max- 
size 4 --output text

The issues was a file permission issue. Once updated the cgi script worked as desired.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM