Skip to main content
1 of 4
Oou
  • 11
  • 1

Executing Shell Script via Web .. output differs from normal execution via command line .. ( missing verbose and other data )

this 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"

can be executed via web can be executed via command line

when executed via command line i see lots of output.. including debug info from "-v" ( verbose mode ) and etc.

but when executed via web.. all i see is the listing of folders. ( executed command's output )

no other data..

why is the extended data missing when i execute this script via web ? why is it there when i execute it via command line ?

how can i make sure it is also there when executed via web ?

Oou
  • 11
  • 1