shell2http icon indicating copy to clipboard operation
shell2http copied to clipboard

logging to file does not include stderr from shell commands

Open freol35241 opened this issue 2 years ago • 1 comments
trafficstars

Using the option to output logs to file (-log=filename) I would expect to see both the stdout/stderr of the shell2http process and stderr from any invoked subcommand to show up there. Currently, tough, it seems like only stdout/stderr from the shell2http process gets piped to the log file.

freol35241 avatar Nov 01 '23 13:11 freol35241

... i searched for tty and dint see this mentioned any where ( that said i search git~hub for shell2http and got zero results =s )

iv just found using

cat - | tee ./svr-log000.txt >/dev/tty ;

will print the post data to the terminal where shell2httpd was run from i added -log=s2h-log.txt but >/dev/tty add any more out put to the log ftr

eg shell2http -log=s2h-log.txt -cgi / 'echo "Access-Control-Allow-Origin: *\n" ;echo foo ; cat - | tee ./svr-log000.txt >/dev/tty ; '

:sunglasses:

dubiouscript avatar Dec 16 '23 00:12 dubiouscript

Hi @freol35241, it should be fixed with the latest commit, could you please test?

msoap avatar Feb 10 '24 14:02 msoap