Ubuntu Networking :: Call Shell Script On Network Change?

Jan 21, 2011

I have a script that I would like to run when my laptops connects to a new network (e.g. changes to another SSID). I've done some searching on the net but could not find any suitable solution (but I bet there is).

View 6 Replies


Red Hat :: Call CGI W/POST Variables From Shell?

Jun 16, 2009

I've got a CGI that I'm trying to debug. Apache gives me an ambiguous 500 error; it would be nice to see the raw output via the shell. I've got the POST request w/headers as follows. What's the best way to troubleshoot this?

POST /cgi/packBoxes.cgi HTTP/1.1
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729)
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8


View 1 Replies View Related

General :: Call Makefile From Shell Script

Apr 12, 2011

I can find all kinds of information on calling a script from a makefile but not the other way around.I'm writing a VERY basic shell script, and I need to call a makefile located in a directory lower than the shell script but can't seem to figure it out../dir/make and ./dir/makefile don't work.

View 2 Replies View Related

General :: Call A Script In New Shell From Current?

May 3, 2010

How to call script b from inside script a in a new shell.

View 2 Replies View Related

Programming :: Call Shell Script In Perl Pm

Sep 4, 2010

i used ldap for authentication.now i have a perl script that users use it for login(contact.pl),then this script calls a shell script(ip.sh) for create iptables chain.

when i call that into contact.pl ,it just prints: usr/sbin/iptables but ip chains didn't change.what is problem? whenever run ip.sh in bash it works correctly

View 10 Replies View Related

Programming :: Scenario For Call Shell Function From Mysql?

Apr 18, 2011

I am trying a scenario for calling a shell script when ever a trigger is called. Can some one guide me how to achieve this scenario. Also it should passes the value from the table to the shell script. Can some one explain me along with the example.

View 2 Replies View Related

Programming :: CGI Shell Scripting : Possible To Call Function From Other Script?

Mar 15, 2011

I got two cgi shell scripting files. Is it possible when i am in file 1, to call a function from file 2?

View 2 Replies View Related

Programming :: QNX Checksum Call In Cgi Shell Scripting Not Working?

Mar 11, 2011

I have a QNX machine with a slinger webserver running on it. With a cgi script i'm trying to do the QNX cksum call and compare it's output value with a fixed output. When i execute the script at the command line it works perfect, but when execute this script by by the webserver in my browser it doesn't work. Here's my code:



Could it be possible that i'm not allowed to do the cksum call in combination with the slinger webserver?

View 4 Replies View Related

Software :: Want To Change Directory System Call

Apr 14, 2011

I am trying to ptrace a process and when the system call is 'cd' change directory,
the ptrace process is able to trap it by comparing it against "__NR__open" system call. When I try to read the name of the directory from ebx register using peek_data I am getting ".message" and not the directory name.
The same thing works fine when I am tracing a file open system call.

View 1 Replies View Related

Software :: Script That Call A Java Program That Call A System Command?

Nov 29, 2010

In practice I have a script that call a java program that call a linux system command. The script if I run it, from a shell functions well,so it is not a java problem. The problem come out when i put this script in a crontab schedulation. The result in this case is that java do not execute the system command. I think it depends on crontab

View 4 Replies View Related

Networking :: Change DNS And Restart Network?

Mar 2, 2011

I need to change DNS server that I'm using from a provider to another.Let's just say I'm using a local DNS, and wanted to use Google's DNS.I'm using CentOS, so a friend of mine told me to directly change file:/etc/resolv.confand I already did it.My question is: Do I need to restart my network after changing this file?How do I know that I'm already using the new DNS instead of still connecting using my old DNS?

View 4 Replies View Related

Ubuntu Networking :: Change Network Card And Bring Eth0 Up

Mar 14, 2010

I run an Ubuntu Server in a Virtualbox environment. Setup works fine. In virtualbox, I accidentally hit a button that generates and assigns a new mac address for the network adapter. Since then the machine does not bring eth0 up. I tried the following ifconfig eth0 down; ifconfig eth0 hw ether macaddress; ifconfig eth0 up. Then restarted networking.

View 2 Replies View Related

Ubuntu Networking :: Change Hosts File By Network Connection?

May 11, 2010

Is it possible to have different /etc/hosts file for different network connections without having to go in and change it every time? The why: I have dyndns and port forwarding to get to my desktop. My laptop is sometimes on the same network, and sometimes not. Also, sometimes the dyndns doesn't update properly, or the outside connection is down, but I want to get to my desktop (and I'm too lazy to walk up the stairs). I'd like to be able to keep one set of bookmarks, ssh command aliases, etc. that would always get to it the fastest and most reliable way possible.

View 1 Replies View Related

Ubuntu Networking :: Slow Wifi Network - 1M Bitrate - Can't Change It

Jul 5, 2010

I have 1 router 2 pcs. We had to move one pc away from the router so I bought a wifi card. Everything went fine, the card works and I have internet but the network is incredible slow.

I am using Ubuntu Lucid Lynx 10.04

lspci | grep Wire





But there are no changes.

View 2 Replies View Related

Ubuntu Networking :: Change Wireless Mode On Network Card?

Apr 4, 2011

I would like to change wireless mode on my network card. When i type in iwconfig in terminal so i get abg I would like to have only a mode active. How do i do?

View 2 Replies View Related

CentOS 5 Networking :: DNS Change During Network Installation?

Sep 21, 2010

I have been installing CentOS 5.5 on a VirtualBox virtual machine using the netinstall iso (leaving almost all options on default).It automatically obtained addresses of the nameserver the host machine was using. However shortly before the installation would have finished the nameserver went down and the installer started giving error "file ... cannot be opened".

After changing the nameserver address (to Google DNS in /etc/resolv.conf , addresses can be resolved again (wget, ping) but the installer still gives the same error and attempts to connect to the original DNS.It there a way to tell the installer about the DNS change and resume installation? Or do I have to either wait for the original DNS or to do the whole installation again?

View 3 Replies View Related

Ubuntu Networking :: Change Ip Address Of Second Internet Sharing Network Card?

Sep 2, 2010

I have a second network card in my ubuntu desktop that I have sharing my internet connection with a wireless router. I have set the router to a static ip address within the network cards range. But, every time I restart the computer, the network card uses a different ip address. One time it will be, the next time it will be, ect. This makes me have to hard reset my router every time it does this. How can I set the network card to use the same ip address all the time?

View 6 Replies View Related

Ubuntu Networking :: Change The Network Card Priority With Multiple Cards?

Sep 26, 2010

I've got two network card interfaces on my computer, one wireless and one wired. The wireless card is connected to the Internet and the wired is connected to the LAN. When only the wireless card is active, Internet works. As soon as i enable the second wired card, Internet stops working. And it seems like Ubuntu chooses the wired card for Internet as soon as it's enabled.

Are there any ways to solve this? So my Ubuntu box always chooses the wireless card for Internet traffic and let me use the wired device for LAN only?

View 1 Replies View Related

Ubuntu Networking :: Change Network Device For Default Inet Gateway?

Oct 21, 2010

I've been struggeling with this for a few hours now, googleing and so on trying to find an easy way to just switch which device I want as primary for internet connections. After long battles I'm at a loss, this is the current automatic routing

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface U 1 0 0 eth0 U 2 0 0 wlan0


View 1 Replies View Related

Fedora Networking :: Change Network Interfaces Names?

Dec 11, 2009

I found problem in FC 12 release. I installed fc 12 to server (earlier there was FC 7). Then as always i realised that names of interfaces (eth0, eth1, eth2 .... eth9) changed after install. eth0 became eth9, eth1 became eth5 ... Earlier on previous fedora releases i solved this problem correcting HWADDR in ifcfg-eth files, so i linked MAC addresses to names (eth0, eth1, eth2) as i wanted in a right order. Now I can't do this. After correcting these files and restarting network sevice i constantly get a message: device ... has different mac than expected. I looked ifup-eth file and compare it with the same one in fedora 7. And i found that in fedora 7 there is function rename_device which processes if HWADDR value doen't coincide with real mac address value. See code:

# remap, if the device is bound with a MAC address and not the right device num
# bail out, if the MAC does not fit
if [ -n "${HWADDR}" ]; then
if [ "${FOUNDMACADDR}" != "${HWADDR}" ]; then
curdev=`get_device_by_hwaddr ${HWADDR}`
if [ -n "$curdev" ]; then
rename_device "${REALDEVICE}" "${HWADDR}" "${curdev}" || {
echo $"Device ${DEVICE} has different MAC address than expected, ignoring."

But in fc 12 release there is no function rename_device!!!!!!!!! So in this case if HWADDR value is not the same as FOUNDMACADDR value (which equal to REALDEVICE mac address) i just get an error message So I can't change interfaces names, as result i can't organize right order of network interfaces as it was earlier on fc7.

View 1 Replies View Related

General :: Can't Recall System App To Call / Test Remote Access To Another Server On Same Network?

Jul 25, 2011

I have logged into one Linux VM and I want to test remote access to another Linux server on the same network but I cannot recall the Linux application to call?

View 10 Replies View Related

Fedora Networking :: Gnome-network - Properties Change Location By

Sep 28, 2010

In gnome-network-properties I've set up two proxy locations: default and remote.

It's a bit of a fag having to change between them via the gui depending on where I am. Can the proxy be changed by command line because then I can set up a script to use the right proxy automatically? - e.g. use remote proxy if my mobile is connected via usb.

Had a google but don't think gnome-network-properties has command line options so I might be approaching this from the wrong tack.

View 3 Replies View Related

Ubuntu Networking :: Automate A Dhclient Call At Startup?

Nov 28, 2010

For test purposes I'm running Ubuntu 10.10 from a USB stick with a USB WLAN stick.The system finds the WLAN router and acquires an IP6 address, but no IP4 address.With "dhclient wlan0" though it does get an IP4 address and connects o.k.How do I setup the system so that this dhclient call is done by the system at startup (or whenever it is necessary)?

View 1 Replies View Related

Ubuntu :: Trying To Change Default Shell And Failed?

Jun 9, 2011

i'm pretty new to ubuntu. I was "playing" trying to change my default shell and failed. Now, after logging in, i open a terminal window and type "su". Ubuntu asks me a password, i give my password and i get this error "unable to execture /bin/bsd-csh: file or directory does not exist". Any idea on how to solve this problem restoring my old shell.

View 2 Replies View Related

General :: Change PS1 When SH (Shell) Out Of VIM

May 19, 2010

I've had my prompt change whenever I :sh (:shell) out of VIM, but can't for the life of me remember how?. The idea is to change the prompt to something like [SH] <your usual prompt here>, so that I know that VIM is running in the background.. I often logout of the shell, because I think VIM is open.

View 3 Replies View Related

Ubuntu Installation :: Change Compiler For A Single Shell?

Feb 11, 2010

I have upgraded my machine to Karmic, and thereby getting gcc/g++ 4.4 in the process. I have some code that requires gcc/g++ 4.3.

I can change the compiler system wide by redirecting the symbolic link from 4.4 to 4.3

sudo rm /usr/bin/gcc
sudo ln -s /usr/bin/gcc-4.3 /usr/bin/gcc

but i would like to have it done per session instead.

View 9 Replies View Related

Ubuntu :: How To Write Shell Script To Change Resolution

Aug 6, 2010

Writing a Shell script which changes my X11.org config to 800x600 from any other resolution .

View 1 Replies View Related

Ubuntu :: Write Shell Script To Change Resolution?

Sep 23, 2010

Canceled a sys backup in progress now my Waste bin is at max and must be emptied.However OpenSuse 11.3 contradicts itself by claiming there is 0 in the waste bin? Perhaps there is a Bash command that would solve the problem

View 8 Replies View Related

Ubuntu Networking :: VOIP - Interactive Voice Response And Call Transfer

Aug 2, 2011

I am complete new to the technical side of VOIP. I know above diagram is not technically correct. I want a setup that works like that and oh the cheaper yet not compromising the better, even ekiga or skype can do that.

View 3 Replies View Related

Fedora :: Cannot Change Shell Theme?

Jul 10, 2011

I overwrote this laptop from an Ubuntu installation to Fedora 15 (Gnome 3 doesn't work, in fallback mode) and unfortunately the theme is messed up. Using Gnome-Tweak tool I cannot change the shell theme, instead I get the message Quote:Could not list shell extensionsAny way to bypass or clear out so it returns to default?---------- Post added at 10:36 PM ---------- Previous post was at 07:12 PM ----------After reboot I had kernel crashes and the system would not boot up anymore. So I re-installed over the previous one, and modified the .gconf, .gconfd, .gnome2 and .gnome2_private before connecting my /home directory to the folder

View 2 Replies View Related

Copyrights 2005-15 www.BigResource.com, All rights reserved