Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

SAP Router configuration on Linux platform (error in start script)

Hello gurus,

I´m trying to setup the saprouter on Fedora v14 (32 bits).

I did all the configure with root user. The problem is when I run the script that starts the saprouter service, it show me the following error:

[root@saprouter sap]# pwd
[root@saprouter saprouter]# saprouter_start 
/usr/sap/saprouter/saprouter_start: line 12: syntax error near unexpected token `|'
'usr/sap/saprouter/saprouter_start: line 12: `        | tee -a $LOGFILE &

The content of this script, has the following sintaxes:

# Start saprouter
# You can automatically start SAProuter when you start the system. In UNIX for example, you would change file /etc/rc.
# saprouter CN=saprouter, OU=0001214237, OU=SAProuter, O=SAP, C=DE sapserv2
if [ -f $SRDIR/saprouter ] ; then
        echo "Starting SAP Router" | tee -a $LOGFILE
$SRDIR/saprouter -r -R $SRDIR/saprouttab -G $LOGFILE -W 60000 -K "p:CN=saprouter, OU=0001214237, OU=SAProuter, O=SAP, C=DE" 
        | tee -a $LOGFILE &

The strange of this is I already did this type of configuration on Linux with the same scripts... but in red hat enterprise linux x86_64 and in there it works perfectly!

Can you help me please in way to solve this problem...?!

Best regards,

João Dimas - Portugal


break line after the "&"


$SRDIR/saprouter -r -R $SRDIR/saprouttab -G $LOGFILE -W 60000 -K "p:CN=saprouter, OU=0001214237, OU=SAProuter, O=SAP, C=DE" | tee -a $LOGFILE & fi


$SRDIR/saprouter -r -R $SRDIR/saprouttab -G $LOGFILE -W 60000 -K "p:CN=saprouter, OU=0001214237, OU=SAProuter, O=SAP, C=DE" | tee -a $LOGFILE &


0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question