run-parts: failed to exec /etc/cron.weekly/ntping: Exec format error

source : debian-user-digest # 1155.

when a job is been run by cron then I get :

/etc/cron.weekly/ntping :
run-parts: failed to exec /etc/cron.weekly/ntping: Exec format error
run-parts: /etc/cron.weekly/ntping exited with return code 1

when I launch at command prompt, then :

/etc/cron.weekly/ntping
12 Jul 13:20:10 ntpdate[10915]: step time server
aaa.bbb.ccc.ddd offset 2.974808 sec


Try adding a shebang to the top of your file :

#!/bin/sh
 
 
Creative Commons License
This work by maniac.vardhan is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
 
 

0 comments :: run-parts: failed to exec /etc/cron.weekly/ntping: Exec format error

Post a Comment