thisThis is my shell script
#!/bin/bash
echo "Content-type: text/plain"
echo ""
sshpass -p $pass ssh -v -p $port -t -o StrictHostKeyChecking=no root@$ip "cd / && ls && exit"
It can be executed via web can be executed, or via command line.
whenWhen executed via command line iI see lots of output.. including debug info from "-v" ( verboseverbose mode ) and, etc.
butBut when executed via web.. all i, all I see is the listing of folders. ( executedexecuted command's output )
no. No other data..
whyWhy is the extended data missing when iI execute this script via web ? whyWhy is it there when iI execute it via command line ?
howHow can iI make sure it is also there when executed via web ?