Questions tagged [CGI] (45)

1
answer

On CentOS how to install and configure a cgi daemon (for python3) for nginx?

Important: Internet access is not!
velma.Ritchie asked April 7th 20 at 10:02
2
answers

How to run python script via URL?

There is a script written in python3. The device makes an http request of the form 10.0.0.1/search.action (device query not configurable). The server is apache and the script search.py in the DocumentRoot.DocumentRoot /var/www <Directory "/var/www"> Options +ExecCGI AddHandler cgi-script .py </Directory> When...
jolie18 asked April 4th 20 at 01:21
0
answer

By means of python and opencv to track the markers on the face and deformed face model in accordance with the movement of the marker?

How to turn something like only by means of python and open cv (and other Libraries) without using blender ?
abigale.Cole asked March 24th 20 at 13:23
0
answer

Running cgi python script from pycharm console and how to do to display Cyrillic?

Hi all, this problem start localhost built-in Python server, in the cgi is the script that if accessed from a browser gives the completed html table in which information in Russian. So, if you run pycharm (where actually writing code), then Cyrillic in the browser is displayed normally when you run from the console instead ...
myrtis asked March 19th 20 at 20:07
2
answers

How to run an external script in the background?

Is PHP 7.2 (CGI), for example add 2 simple script: sleep.php:<?php sleep(30); background.php:<?php exec("su -s /bin/sh - user-c cd /var/www/user/data/www/example.com/ && /opt/php72/bin/php-q /var/www/user/data/www/example.com/sleep.php > /dev/null 2>&1 &"); Console:cd /var/www/user/data/www/examp...
Lennie74 asked March 16th 20 at 14:01
4
answers

Bulk image optimization on the server, how?

Hello. A question, is there any PHP script or server-based solution for mass image optimization, for example the same software on windows: https://github.com/lorents17/iCatalyst ? The problem is that on the website more than 100,000 images (online store), all photos should be optimized.
Noemi.Hilpert asked March 12th 20 at 16:31
1
answer

Where are written logs CGI scripts in IIS?

I use IIS to run CGI scripts written in python. (Namely hgweb.cgi) But if something goes wrong when the script is executed, IIS displays very limited information in the log:2018-10-20 10:14:52 W3SVC1 ::1 POST /hgweb.cgi/ cmd=unbundle 9000 - ::1 mercurial/proto-1.0+(Mercurial+4.1.3) is localhost:9000 502 2 1 295 Error 502. B...
colby asked March 12th 20 at 13:29
1
answer

Made a website using python, and how to access website from local image servers CGI?

Made a website for this manual manual. Here is the code and it works. The link to the picture works, as that would make the picture loaded ? Want to make a button and on this button loaded this image. Or just boot the image after opening .py from the site.print("Content-type: text/html") print() print("<h1>Hello worl...
foster.Turcot asked March 11th 20 at 20:29
2
answers

Library in C++ to work with mysql

Write a CGI app in C++ for a site, you need to work with MySQL what book would you advise to use the library for work? As the options already found: MySQL++, SQLAPI, but maybe there is something else. I write in Visual Studio.
Cecilia_Bartell5 asked October 10th 19 at 03:47
6
answers

Add a Unix user using CGI?

Hello, there is a problem with adding users in Linux using the CGI interface. There is a simple perl script index.cgi, its contents are:my $ex_result = `sh /add_ser.sh omagadble passwordble`; print $ex_result; die "Users must be added"; And add_ser.sh:#!/usr/bin/sh useradd -g ftp-users -d /home/ftp-docs $1 echo "$2" | pa...
kaitlin_Koch asked October 9th 19 at 18:42