General discussion on installation and configuration of SOGo

Text archives Help


[SOGo] Sogo-tool - standard in must be tty


Chronological Thread 
  • From: Philipp Strobl < >
  • To:
  • Subject: [SOGo] Sogo-tool - standard in must be tty
  • Date: Wed, 06 Jul 2011 09:29:05 +0200

Hi,

i have a script that execute the sogo-backup tool. For some reason it exits with an error: "standard in must be a tty" ?

What does this mean ?
The backup seems to be OK.

It is not possible to run the sogo-tool from script ?

Here is the script (for all, who want to participate, you are welcome) :

==================================
#! /bin/sh

## DEBUG
#set -x

DATE="`date +'%Y%m%d_%H%M%S'`"

cd /home/sogo/Backup

mkdir tmp_$DATE
chown sogo:sogo tmp_$DATE
chmod -R 770 tmp_$DATE
cd tmp_$DATE

if [ "$1" = "-i" ]; then
su sogo -c "sogo-tool -v backup ./ ALL"
else
# su sogo -c "sogo-tool backup ./ ALL" > /dev/null 2>&1
su sogo -c "sogo-tool backup ./ ALL" > output 2>&1

fi

#echo "Exit-Code: $?"
#exit 1

if [ "$?" != "0" ];then
echo "!!!!!"
echo "Fehler beim Backup mit sogo-tool"
echo ""
cat output
else
mkdir ../STORE/$DATE
chmod -R 770 ../STORE/$DATE
mv * ../STORE/$DATE/
fi

cd ..
rm -rf tmp_$DATE

==================================

Best Regards
Philipp

Philipp v. Strobl-Albeg
- PILARKTO NETWORKS -

http://www.pilarkto.net





Archive powered by MHonArc 2.6.18.

Top of page