With only

/tmp/scriptDns&


it don't run. Why?




--- In [email protected], "Hendrik Lachmann" 
<[EMAIL PROTECTED]> wrote:
>
> Delete the line with #/bin/sh.
> Then the script should do the job.
> I had the same problem and after deleting the first line it 
worked. I 
> don't know why...
> 
> --- In [email protected], "cchechio" <cchechio@> wrote:
> >
> > ok it run, its name is scriptDns
> > 
> > now i create a file.sh and insert this file.sh in the directory 
> > boottime
> > 
> > in this file.sh there is:
> > 
> > #/bin/sh!
> > /tmp/scriptDns&
> > 
> > but it don't run
> > 
> > 
> > 
> > 
> > 
> > 
> > --- In [email protected], Davide Cantaluppi <gianbc@> 
> > wrote:
> > >
> > > Hi,
> > > Probably you need a shell script likethe attached one to 
upgrade 
> > the Dyndns
> > > info from fox:
> > > 
> > > 
> > > #!/bin/sh
> > > # DynDNS updater compatible with BusyBox v1.00
> > > # requires: wget, ifconfig, sed, cut, date
> > >  
> > > #####################################
> > > IFACE=eth1                      # Internet interface
> > > DYNHOST=myhost.dyndns.org       # DynDNS hostname
> > > DYNUSER=username                # Username
> > > DYNPASS=password                # Password
> > > LOGFILE=/var/log/dyndnsbb.log   # Path for logfile
> > > ######################################
> > >  
> > > IPDIN=`ifconfig $IFACE | sed -e '/inet/!d' -e 's/.*addr://' -
e 's/
> > [ ].*//'`
> > >  
> > > if [ "$1" = "-f" ]; then    # force ip update
> > >   IPDINX="";
> > > else
> > >   IPDINX="$IPDIN";
> > > fi
> > >  
> > > while [ "1" = "1" ]; do     # infinite loop
> > >  
> > >   IPVALID=`echo $IPDIN | cut -d "." -f 4`
> > >   if [ "$IPVALID" -gt 0 ]; then
> > >     if [ "$IPDIN" != "$IPDINX" ]; then
> > >       DYNRES=`wget -O -
> > > "http://$DYNUSER:$DYNPASS@/nic/update?system=dyndns&hostna
> > > me=$DYNHOST&myip=$IPDIN"`
> > >       DYNDATE=`date -R`
> > >       echo "$DYNDATE: New IP $IPDIN. DynDNS response: $DYNRES" 
>> 
> > $LOGFILE
> > >       IPDINX="$IPDIN"
> > >     fi
> > >   fi
> > >   sleep 120                 # check for IP changes every 120 
> > seconds
> > >   IPDIN=`ifconfig $IFACE | sed -e '/inet/!d' -e 's/.*addr://' -
> > e 's/[
> > > ].*//'`
> > >  
> > > Done
> > > 
> > > 
> > > 
> > > --------
> > > Bye
> > > 
> > > Davide
> > > 
> > > 
> > > 
> > > 
> > > 
> > > Il 23-05-2007 16:07, "Christian Leu" <christian.leu@> ha 
> > scritto:
> > > 
> > > >  
> > > >  
> > > >  
> > > > 
> > > > Shure:
> > > > http://www.google.ch/search?hl=de&client=firefox-
> > a&rls=org.mozilla%3Afr%3Aoffi
> > > > 
cial&hs=xwB&q=dyndns.org+shell+script+wget&btnG=Suche&meta=lr%
> > 3Dlang_de%7Clang
> > > > _en 
> > > > <http://www.google.ch/search?hl=de&amp;client=firefox-
> > a&amp;rls=org.mozilla%3A
> > > > fr%
> > 
> 
3Aofficial&amp;hs=xwB&amp;q=dyndns.org+shell+script+wget&amp;btnG=Suc
> > he&amp
> > > > ;meta=lr%3Dlang_de%7Clang_en>
> > > > 
> > > > On 5/23/07, cchechio <cchechio@ <mailto:cchechio%
40yahoo.com> 
> > >
> > > > wrote:
> > > >> >
> > > >> >   Can You write a small example ?
> > > >> >
> > > >> > many thanks for your help
> > > >> >
> > > >> > --- In [email protected] <mailto:foxboard%
> > 40yahoogroups.com>
> > > >> <foxboard%40yahoogroups.com>, "Christian
> > > >> > Leu" <christian.leu@>
> > > >> > wrote:
> > > >>> > >
> > > >>> > > I think what you will need is a service like 
dyndns.org 
> > and the
> > > >> > you should
> > > >>> > > make a script which connect to dyndns with the new ip. 
> > This way,
> > > >> > you will be
> > > >>> > > able to access your foxboard with a domain name.
> > > >>> > >
> > > >>> > > Regards
> > > >>> > >
> > > >>> > > Christian
> > > >>> > >
> > > >>> > >
> > > >>> > > On 5/23/07, summerlee555 <summerlee555@> wrote:
> > > >>>> > > >
> > > >>>> > > > You can consider to use HDCP service.
> > > >>>> > > >
> > > >>>> > > > --- In [email protected] <mailto:foxboard%
> > 40yahoogroups.com>
> > > >>>> <foxboard%40yahoogroups.com><foxboard%
> > > >> > 40yahoogroups.com>, "cchechio"
> > > >>>> > > > <cchechio@> wrote:
> > > >>>>> > > > >
> > > >>>>> > > > > Hi All,
> > > >>>>> > > > >
> > > >>>>> > > > > when i connect to internet my foxboard,
> > > >>>>> > > > >
> > > >>>>> > > > > i have any time a different ip number.
> > > >>>>> > > > >
> > > >>>>> > > > > i can not my foxboard connected to internet, it 
is 
> > much
> > > >> > expensive.
> > > >>>>> > > > >
> > > >>>>> > > > > How can i resolve the problem of ip dinamic?
> > > >>>>> > > > >
> > > >>>> > > >
> > > >>>> > > >
> > > >>>> > > >
> > > >>> > >
> > > >>> > >
> > > >>> > >
> > > >>> > > --
> > > >>> > > christian leu
> > > >>> > > wilerweg 37
> > > >>> > > ch-3007 murten
> > > >>> > >
> > > >>> > > MOBILE +41 79 474 82 11
> > > >>> > > ICQ: 124663788
> > > >>> > > MSN: me@
> > > >>> > >
> > > >>> > > Machen Sie mit bei Xing und erweitern Sie Ihr Netzwerk:
> > > >>> > > http://www.xing.com/go/invite/3226960.212cd5
> > > >>> > >
> > > >>> > >
> > > >>> > > [Non-text portions of this message have been removed]
> > > >>> > >
> > > >> >
> > > >> >  
> > > >> >
> > > 
> > > 
> > > 
> > >   ----------
> > > 
> > > #!/bin/sh
> > > # DynDNS updater compatible with BusyBox v1.00
> > > # requires: wget, ifconfig, sed, cut, date
> > > Ê
> > > #####################################
> > > IFACE=eth1                      # Internet interface
> > > DYNHOST=myhost.dyndns.org       # DynDNS hostname
> > > DYNUSER=username                # Username
> > > DYNPASS=password                # Password
> > > LOGFILE=/var/log/dyndnsbb.log   # Path for logfile
> > > ######################################
> > > Ê
> > > IPDIN=`ifconfig $IFACE | sed -e '/inet/!d' -e 's/.*addr://' -
e 's/
> > [ ].*//'`
> > > Ê
> > > if [ "$1" = "-f" ]; then    # force ip update
> > >   IPDINX="";
> > > else
> > >   IPDINX="$IPDIN";
> > > fi
> > > Ê
> > > while [ "1" = "1" ]; do     # infinite loop
> > > Ê
> > >   IPVALID=`echo $IPDIN | cut -d "." -f 4`
> > >   if [ "$IPVALID" -gt 0 ]; then
> > >     if [ "$IPDIN" != "$IPDINX" ]; then
> > >       DYNRES=`wget -O - "http://$DYNUSER:$DYNPASS@/nic/update?
> > system=dyndns&hostname=$DYNHOST&myip=$IPDIN"`
> > >       DYNDATE=`date -R`
> > >       echo "$DYNDATE: New IP $IPDIN. DynDNS response: $DYNRES" 
>> 
> > $LOGFILE
> > >       IPDINX="$IPDIN"
> > >     fi
> > >   fi
> > >   sleep 120                 # check for IP changes every 120 
> > seconds
> > >   IPDIN=`ifconfig $IFACE | sed -e '/inet/!d' -e 's/.*addr://' -
> > e 's/[ ].*//'`
> > > Ê
> > > done
> > > 
> > > [Non-text portions of this message have been removed]
> > >
> >
>


Reply via email to