Home > OS >  Bash variable problems and a cgi script
Bash variable problems and a cgi script

Time:09-19

Linux (lighttpd server side has a cgi script is as follows:
 
#!/bin/sh
# set -x
Input=` cat/dev/stdin `
Action=${input/action=/}
Echo $action

Then I in Windows CMD side
 
Curl. Exe - connect timeout - 2 - s - f - X POST - digest - user root: a root 10.1.2.244/cgi - bin/Arthur c. gi - d "action=` df `"

But the CMD end echo only
 
` df `

Ideal effect is to give the appearance of df command execution after

My idea is the CMD end POST data (bash) to Linux cgi scripts, let the script execution POST instruction and then echo output in the past, and do not change the cgi script, how to change to the CMD command?
  • Related