01-31-2009
navigating a web interface with a shell script
I'm trying to design a script that will check the external ip address of my home network and then assign it to the A record of a subdomain. When i started, i thought i could do this with SSH, but turns out I don't have ssh access to update the DNS record (not surprising i suppose)
So now, i have to figure out if it's possible to log in and navigate the web interface with a script( perl or bash preferably) to update that A record. I don't even know where to start on this, and was hoping maybe someone here might be able to point me in the right direction. I've so far managed to find nothing online, but I think it's at least partially because search with script and web interface tend to bring up cgi type threads.
Thanks again!
7 More Discussions You Might Find Interesting
1. Infrastructure Monitoring
Hello everyone,
I had installed nagios 3 on fedora 5 successfully and i have verified sample config file by issueing command like
/usr/local/..... -v /usr/local.../nagios.cfg .
....and i am getting the result as well. After that i started nagios by giving command like ... service nagios... (1 Reply)
Discussion started by: Renjesh
1 Replies
2. Shell Programming and Scripting
Hi,
I have written a shell script that does the job of downloading a build file and upgrading a application on my test linux system.
This shell is a interactive script where the user needs to enter certain info like the remote system on which the upgrade has to be performed and the build number... (2 Replies)
Discussion started by: sunrexstar
2 Replies
3. AIX
Hi ,
I have shell script which is perfectly working on unix server prompt. But when i execute it using maestro scheduler with same user , it is giving error of not recognizing the env or local variable.
This is code in script
inbDir=${INTRFACE_DIR}/inbound
zipfile=$inbDir/$1
echo... (2 Replies)
Discussion started by: avi.coep
2 Replies
4. Shell Programming and Scripting
Hi
I have created a shell program, which takes a series of parameters as shown in the below code. Its working good from terminal.
My program
restorejob.sh -g <NAME> -p <Path-to-search> -r <Path-to-restore>
Its working fine from bash shell.
I want to extend this functionality like... (1 Reply)
Discussion started by: rakeshkumar
1 Replies
5. Web Development
Hi Gents,
What is the best way to create a web interface for mysql database? That I can manage my data for root user and for normal user as well according to their privileges? Assuming that I use Linux as a server and Apache as a web server and my database is mysql.
Thanks in advance (5 Replies)
Discussion started by: leo_ultra_leo
5 Replies
6. Shell Programming and Scripting
Hi Team,
I have daily pdf files which i have to convert in tif images. I have script which does it. I need to put these images in some specific folder (which i create manually) on server. Is there any web based way to it, so that user can simply browse file & it will convert & upload on... (1 Reply)
Discussion started by: paragnehete
1 Replies
7. Solaris
HI Community,
my server has more than 15 zones and each one is having virtual interface of 10G adapter (qlge0)
if the filter the output of ifconfig -a | grep inet, it's showing all interfaces including virtual.
i have take first like from the output and assumed that as my main ip
is... (3 Replies)
Discussion started by: bentech4u
3 Replies
LEARN ABOUT DEBIAN
ipfilter.conf
NETSCRIPT-2.2.conf(5) File Formats Manual NETSCRIPT-2.2.conf(5)
NAME
/etc/netscript/network.conf - interface, firewalling, and QoS configuration file.
/etc/netscript/if.conf - interface setup shell script file
/etc/netscript/qos.conf - QoS setup shell script file
/etc/netscript/ipfilter.conf - IP chains filtering shell script file
/etc/netscript/srvfilter.conf - server IP filter shell script file
DESCRIPTION
This manpage is a place holder until something better is written when the netscript itself has stopped changing rapidly.
Please see the README file in the /etc/netscript directory, and READ the configuration files if you need to change them. Apart from net-
work.conf, all of them contain sh (1) shell script functions which are there so that various things can be altered or hooked in at the
right place. Network.conf contains the full network setup details, including special interface setup for the likes of ciped/pppd/wanconfig,
and is fully commented with examples given.
UPGRADE PATH FROM KERNEL 2.2.X
The firewall/IP filtering stuff in ipfilter.conf is the part that changed radically with the move to iptables and a far better way of set-
ting up the IP filtering rules, however the QoS and interface startup/shutdown in if.conf have changed but are backwards compatible with
the old 2.2.x ipchains version of netscript for the interface address configuration settings. You will have to set up the filtering again
to use iptables by directly using the iptables commands.
Also, the kernel 2.2.x version scripts are set up so that iptables is only run on a 2.4.x kernel, otherwise IP forwarding is disabled if
beforehand you set IPFWDING_KERNEL to FILTER_ON in network.conf.
This means that when you upgrade a box to a 2.4.x router kernel, you should then be able to reboot it and log into remotely and upgrade
netscript to the version that will support 2.4.x. In this situation, if you have set old IPFWDING_KERNEL setting to FILTER_ON beforehand
in network.conf, all IP forwarding through the box will also be disabled. This means that you can safely remotely upgrade a firewall.
SEE ALSO
netscript(8), ipchains(8), iproute(8), brcfg(8).
AUTHOR
This manual page was written by Matthew Grant <grantma@anathoth.gen.nz>, for the Debian GNU/Linux system (but may be used by others).
BUGS
The author is lazy. He needs to write btter man pages...
November 23, 2000 NETSCRIPT-2.2.conf(5)