Hi all, I added a useful (for me at least) functionnality to the agent configuration: the configuration of the scp port in pandora_agent.sh at the beginning of the file: if [ ! -z "`echo $a | grep -e '^server_port'`" ] then SERVER_PORT=`echo $a | awk '{ print $2 }' ` echo "$TIMESTAMP - [SETUP] - Server IP Address is $SERVER_PORT" >> $PANDORA_HOME/pandora.log fi at the end: scp -P $SERVER_PORT $PANDORA_FILES pandora@$SERVER_IP:$SERVER_PATH > /dev/null 2> /dev/null And in the pandora_agent.conf file: server_ip MyDNSServerName server_port 22 server_path /opt/pandora/pandora_server/data_in I needed this functionnality, so I added it! by Denis
added functionnality: choice of scp port
daggett · 5 dic 2006, 19:30 · 4 mensajes · 93 visitas
- Inicio del debate
Thank you for your contrib! :wink: We'll take a look at your code, but will not be in the Pandora 1.2... WE HAVE JUST RELEASED IT!!!!!!! http://pandora.sourceforge.net/en/index.php?sec=downloads Raul
Hi all, I added a useful (for me at least) functionnality to the agent configuration: the configuration of the scp port in pandora_agent.sh at the beginning of the file: if [ ! -z "`echo $a | grep -e '^server_port'`" ] then SERVER_PORT=`echo $a | awk '{ print $2 }' ` echo "$TIMESTAMP - [SETUP] - Server IP Address is $SERVER_PORT" >> $PANDORA_HOME/pandora.log fi at the end: scp -P $SERVER_PORT $PANDORA_FILES pandora@$SERVER_IP:$SERVER_PATH > /dev/null 2> /dev/null And in the pandora_agent.conf file: server_ip MyDNSServerName server_port 22 server_path /opt/pandora/pandora_server/data_in I needed this functionnality, so I added it! by Denis
Thanks!, it has been added to code repository and will be published for 1.3 version.
Well done Dagget! Maybe we could also add debug option (I mean, -v -v -v) to the scp
Entra en tu cuenta para publicar.
