Hi there,
I am running this script succesfully on FEDORA CORE 2 to update enom DNS address
----------------------------------------------------
#!/bin/bash
#assign adsl address to a variable $DYNIP_ADDR
export DYNIP_ADDR=$(ifconfig ppp0 | grep -i "addr:" | cut -f2 -d: | cut -f1 -d " ")
#pass the values to enom DNS register through the querystring
curl "
#print out the new IP address
echo $DYNIP_ADDR;
-----------------------------------------------------
When I try to run it on my RedHat 9 machine in the office it replies
:bad interptreter: no such file or directorysh
Anyone knows what could be the problem?
Thanks a lot.
Qatqat
Life is what happens when you are making other plans.
I am running this script succesfully on FEDORA CORE 2 to update enom DNS address
----------------------------------------------------
#!/bin/bash
#assign adsl address to a variable $DYNIP_ADDR
export DYNIP_ADDR=$(ifconfig ppp0 | grep -i "addr:" | cut -f2 -d: | cut -f1 -d " ")
#pass the values to enom DNS register through the querystring
curl "
#print out the new IP address
echo $DYNIP_ADDR;
-----------------------------------------------------
When I try to run it on my RedHat 9 machine in the office it replies
:bad interptreter: no such file or directorysh
Anyone knows what could be the problem?
Thanks a lot.
Qatqat
Life is what happens when you are making other plans.