New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

bad interpreter when trying to run a shell file after reboot

Got problems with Bubba? Then this forum is for you.
Locked
Filip
Posts: 30
Joined: 06 Feb 2007, 12:27
Location: Lund, Sweden

bad interpreter when trying to run a shell file after reboot

Post by Filip »

I've been running my bubba for many, many days. But was forced to reboot it because of external circumstances.
I've been using a script to update my IP address at Loopia (a swedish ISP) to solve the dynamic IP with a domain.
I'm using the following script at:
https://loopiadns.loopia.se/index.php?tmid=2&lcid=212

#!/bin/sh

curl -s --user 'användarnamn:lösenord'
"http://dns.loopia.se/XDynDNSServer/XDynDNS.php?
hostname=dindomän.se&
myip="`curl -s dns.loopia.se/checkip/checkip.php |
sed 's/^.*: \([^<]*\).*$/\1/'` ; echo


After running the script after the reboot I get the following error:


# ./loopiadns.sh
: bad interpreter: No such file or directory


What's wrong?
DanielM
Posts: 637
Joined: 28 Mar 2008, 06:37
Location: Sweden

Post by DanielM »

I don't really see exact what is causing the problem, so I can't help you there. I also use Loopia with dynamic dns though. Thought maybe it could help if I shared my conf. I use ddclient with the following configuration:

Code: Select all

# /etc/ddclient.conf

daemon=7200
#ssl=yes

pid=/var/run/ddclient.pid
protocol=dyndns2
custom=yes
use=web, web=dns.loopia.se/checkip/checkip.php,
web-skip='Current IP Address:'
server=dns.loopia.se/XDynDNSServer/XDynDNS.php
noforce

login=xyz
password=xyz

wildcard=yes
myfirstdomain.se
myseconddomain.se
/Daniel
Xet
Posts: 53
Joined: 12 May 2008, 02:40

Post by Xet »

Is there a chance that a windows "new line" has snuck in?
FTP:ing a file in text mode or similar from a windows to a unix machine might cause such errors...
Locked