Hi,

ich habe mir eine ownscript.sh in /etc erstellt mit folgendem Inhalt:

Code:
ntpd -dnq -p de.pool.ntp.org
tffpctl --setgmtoffset
tffpctl --syncfptime
Wenn ich diese Befehle einzeln vom Terminal ausführe klappt das auch:

TOPF:/etc# ntpd -dnq -p de.pool.ntp.org
ntpd: sending query to 85.10.246.234
ntpd: reply from 85.10.246.234: offset:+0.004306 delay:0.014607 status:0x24 strat:2 refid:0x676735c0 rootdelay:0.020005 reach:0x01
ntpd: sending query to 85.10.246.234
ntpd: reply from 85.10.246.234: offset:+0.004452 delay:0.015056 status:0x24 strat:2 refid:0x676735c0 rootdelay:0.020005 reach:0x03
ntpd: sending query to 85.10.246.234
ntpd: reply from 85.10.246.234: offset:+0.004394 delay:0.014749 status:0x24 strat:2 refid:0x676735c0 rootdelay:0.020005 reach:0x07
ntpd: sending query to 85.10.246.234
ntpd: reply from 85.10.246.234: offset:+0.004696 delay:0.015609 status:0x24 strat:2 refid:0x676735c0 rootdelay:0.020005 reach:0x0f
ntpd: sending query to 85.10.246.234
ntpd: reply from 85.10.246.234: offset:+0.004522 delay:0.014987 status:0x24 strat:2 refid:0x676735c0 rootdelay:0.020005 reach:0x1f
TOPF:/etc# tffpctl --setgmtoffset
TOPF:/etc# tffpctl --syncfptime

Aber wenn ich das Script vom Terminal aus starte kommt das:

TOPF:/etc# TOPF:/etc# ./ownscript.sh
ntpd: bad address 'de.pool.ntp.org '
tffpctl: unrecognized option '--setgmtoffset '
tffpctl: unrecognized option '--syncfptime'

Was mache ich da falsch?

PS: die ntpd-Option -d ist nur zu Testzwecken um eine Ausgabe zu bekommen.