Programming :: Receive The Notification On Internet Disconnection?

Mar 21, 2011

I am writing a chatting program and want to receive the notification on Internet disconnection (e.g. when the cable is unplugged). Is there any way to achieve this?

View 1 Replies


ADVERTISEMENT

Ubuntu Networking :: Schedule Disconnection Of Internet?

Mar 25, 2010

i am using ubuntu 9.10.i connect to net through the gnome netwok manager via a mobile broadband connection. can anyone suggest any commands or tools with the help of which i can disconnect the net at a preset time or after a fixed interval has expired. i know that by executing "poff" command in terminal i can disconnect the connection, but i want the same to happen automatically without any kind of user intervention at a scheduled time.

View 2 Replies View Related

Ubuntu Networking :: Internet Disconnection When Close The Terminal?

Mar 25, 2010

First, the network manager would show up on my girlfriend's profile (hers was the first one we created) but it won't show up on mine and it would not detect any internet connections. I found another thread that told me to type "nm-applet &" into the terminal, which works great. It shows the network manager and auto connects. But as soon as I close the terminal, it auto disconnects. Anyone know why and what I can do to make the network manager icon stay besides keeping the terminal open?

View 1 Replies View Related

Ubuntu Installation :: Internet Disconnection After Installing Nvidia Driver

Jul 6, 2010

last night i have fresh installed ubuntu 10.4 on my computer. Then after that, I installed the updates. Lastly, i installed nvidia hardware driver so that i could use its graphical effects. After rebooting my computer, i've noticed that i was disconnected from the internet. And I was surprised that it is the cause of my internet disconnection because when i remove it, my internet comes back. What should I do with this?

View 7 Replies View Related

General :: Receive Shutdown Broadcast Notification In Desktop (GNU, Gnome)

Jul 17, 2011

When # shutdown +5 is run all the terminals (including pseudo terminals) are sent broadcast messages saying system is about to go down. Is it possible for user to receive this in the form of OSD or system tray notification so that he will be informed even if he is not running any terminal emulator or running it but minimized it and working with something else?

View 1 Replies View Related

Ubuntu Networking :: Loosing Connection After Few Minutes - Without Showing Any Sign Of Disconnection Except No Internet/skype/dropbox

Jul 15, 2010

I have an LG R-450 laptop with Ubuntu 10.04 installed in it. When I connect him to a network (either LAN or Wireless) it stays connected for a few minutes and then Just disconnects (without showing any sign of disconnection except no internet/skype/dropbox). Only way to renew connection is after startup. The network controller is SIS 191 Gigabit Ethernet adapter.

View 9 Replies View Related

Server :: Postfix To Receive Mail From Internet

Dec 3, 2010

I've set up both Postfix and Dovecot on my server. I can currently send mail via Outlook to Postfix over Port 587 (rather than Port 25), and receive mail from Dovecot on Outlook. However, the only mails I am able to receive are those originated from within the server itself. If I attempt to send an e-mail to the address my Outlook listens to, the mail will never reach my Outlook. In other words, no one on the Internet is able to send mail to me.

Can someone tell me:
1) If setting Postfix to listen over Port 587 for my Outlook to send mail outwards is preventing me to have Postfix to listen to mails coming from the Internet? Would I have to turn on both Ports 25 and 587 in /etc/postfix/master.cf?
2) I have configured my Postfix to use saslauthd by authenticating those who are on /etc/passwd. This means I can enter my Linux account details into Outlook in order to connect and download messages. However, does this mean other MTA servers on the Internet who doesn't know my account details are unable to authenticate with my Postfix server and send mails to it?

View 9 Replies View Related

Ubuntu Networking :: Intermittent Internet Connection - Freezes And Doesn't Receive Few Packets

Mar 31, 2010

I'm having problems with my internet connection; it seems to be working fine then every other click of a page there is no connection, then I click it again a second later and it works. I am using a wired network connection plugged into an addon wireless router.

When I use ping under network tools it seems to be fine, then freezes halfway through and doesn't receive those few packets, giving me a transmission percentage of about 70%.

View 2 Replies View Related

Debian Programming :: Cannot Receive UDP Packets

May 11, 2015

I am trying to build a socket to retrieve the ethernet packets from ECU(I do not know much about the ECU). When i run my code on windows there is no problem and the code runs correctly. But when i run my code on Debian it gets stuck at s.recv(1024).

I have already set static ip in /etc/network/interfaces as follows:

Code: Select alliface eth0 inet static
address 160.48.199.91
netmask 255.255.255.0
gateway 160.48.199.254

The simple code is as below:

Code: Select all import socket
    import sys
    HOST = "160.48.199.91"
    port = 30490
    s = socket.socket(socket.AF_INET, socket.SOCK_RAW, socket.IPPROTO_UDP)
    s.bind((HOST, 30490))
    while True:
         data = s.recvfrom(1024)
         print(data)

There is no LAN or Router. When i check netstat -s i see that there are 0 UDP and 0 TCP messages received. But when i check in Wireshark on Debian i could see the displayed UDP packets. Does it mean that the UDP packets are reaching the Raspberry Pi but not received by Debian ? Or are these packets being dropped?

View 4 Replies View Related

Programming :: How To Send And Receive Packets Using Libpcap

Mar 11, 2011

How can I send and receive packets using libpcap, reply as early as possible.

View 1 Replies View Related

Programming :: Receive Command Output And Store It To A Variable?

Apr 3, 2010

Suppose I want to account number of files beginning with abc , I can use "ls 'abc* | grep abc | wc -l", this will return me a number.
I want to store this number in a variable, say var1, so I tried
1. "ls 'abc* | grep abc | wc -l |read var1", but this didn't work as var1 has no value somehow.
2. var1='ls 'abc* | grep abc | wc -l', this just assign the entire string "ls 'abc* | grep abc | wc -l" to var1, which is not I wanted.

I don't want to store the value to a temporary file and then read the value from that file. I think there should be a direct way to get the value, but don't know how. I know in tcsh, one can just use set var1='ls 'abc* | grep abc | wc -l', but it also doesn't work in bash. Can anyone give any clue about this?

View 5 Replies View Related

Programming :: Socket C++ / Send And Receive Messages In Server?

Jan 2, 2009

I'm trying implement a small server for a university work, my server is creating, binding and listening but it don't accept any connection, these are the files I'm using in server:

Code:

// Definition of the Socket class
#ifndef SOCKET_H
#define SOCKET_H
#include <sys/types.h>
code....

I've made a client just for test it, but no ones run well, the server is always returning -1 when accept is called!!

What should I do to send and receive messages in this server??

View 3 Replies View Related

Programming :: Send /receive Data Through Serial Port In Fedora?

Dec 27, 2010

I am doing work on serial port. I want to send/receive data to/from Microcontrolar through serial port. But I don't know how to initialize, receive and send data to Serial port. i am new in fedora so i hav'nt any deep concept of fedora.can anyone send me C code , which communicate through serial port in fedora (or atleast help me). I am using Fedora 11.

View 6 Replies View Related

Programming :: Perl - UDP Server Receive / Send Packet To Host

Apr 1, 2010

I have found many examples out on the www for creating udp servers with sockets. The problem I am running into is after I receive the packet from a host I need to be able to send a custom made packet(I'm using RawIP / NetPacket to make my packet) back to this host. The only way to do this is seemingly through the send() function. This function however doesn't appear to allow me to specify which host to send my packet to.

View 2 Replies View Related

Programming :: Plan Of Action For Script Which Is Able To Send / Receive Email

Feb 22, 2010

A bit clumsy subject, but I would like to make a script, which is able to send and receive email messages from CLI. The script should work like this:

1. read user input from stdin(for example a mail address)
2. send mail over SMTP(SSL, port 465) to a mail server
3. mail server sends an automatic response, script should just display this response email sent from mail server over IMAP(port 993)

At the moment I have a fallowing configuration in my Thunderbird:

Code:
IMAP mail.domain.com SSL 993
SMTP mail.domain.com SSL 465

Is it possible with 'mail' utility? Do I need to configure some sort of MTA at first(I use SUSE and I have Sendmail installed by default)? What are the steps, to get this script working?

View 1 Replies View Related

Programming :: Pattern Detection In The Logs + Notification?

Sep 6, 2010

I'm looking for a solution of pattern detection in the logs and then allows to send me an email notification if it detects the previously specified term.I use already Logwatch, but I do not know if it is possible to configure it for that use.

View 1 Replies View Related

Ubuntu Networking :: Disconnection While Updating The 10.04?

Aug 4, 2010

Every time I update Ubuntu 10.04 or I install new packages, after a while (about 10-15 MB of dowloaded files) the router goes off-line.I have a 3COM ADSL Wireless 11g Firewall Router and I am connected with a LAN cable (but the same happens when I use the wireless). My laptop is a Dell Studio XPS.I have to restart the router every time, and it works for another 10-15 MB, then it stops again.

View 3 Replies View Related

Server :: Ssh: Prevent Disconnection After A Command?

Aug 19, 2010

I wish to create aliases to log into a server and go to a specific folder. For example, I have two aliases:

Code:

alias REP1='ssh me@server cd /REP1'
alias REP2='ssh me@server cd /REP2'

and of course, I'm disconnected after cd commands. I found no ssh option which prevents this disconnection to occur. I also tried the following trick:

Code:

ssh me@server "cd /REP; bash -i"

but it left me with a crappy shell (no color, directions keys printing ^]]A, ...)

View 4 Replies View Related

Ubuntu Installation :: Resume Upgrade Broken By SSH Disconnection?

Apr 17, 2010

I started an upgrade last night (from Jaunty to Karmic) using a "do-release-upgrade" command on a remote server via ssh. However, this morning, I discovered that the ssh connection between my machine and my server was broken.

I can see that the do-release-upgrade process is still running (well, a giant /usr/bin/dpkg is in the process list) and waiting for a response.

Is there any way I can take control of that session from my current session?

View 2 Replies View Related

Slackware :: Remove Net Manager And Use Wicd Only To Resolve Disconnection

Jun 12, 2010

I replaced the trusty old aironet wireless card with a trendnet scanbus wireless card so I could secure my home wireless with wpa encryption. It uses the ath5k module, and the wireless is set up with wicd. The issue is that if I stop browsing for about 2 minutes, the next time I start to browse, it will disconnect, then reconnect no problem. I don't know if this is supposed to be a feature, but it is sure annoying. Is there a tweak somewhere to stop this? The other option would be to use ndiswrapper and use windows drivers, but I'd rather explore tweaking, if possible. If I have to use ndiswrapper, would I have to rmmod ath5k first, or would it be ok to use ndiswrapper directly?

View 2 Replies View Related

Debian Hardware :: Realtek RTL8101E Wired Ethernet Random Disconnection

Aug 23, 2014

I have this wired problem with my realtek rtl8101e ethernet. It keeps on disconnecting randomly with my router. My computer is connected to D-link router via LAN cable. This problem does not occur in my windows xp os.

I have to suspend and resume my Debian os (wheezy 7.6 KDE) to get the ethernet connection up everytime it disconnects with my router.

These are my ethernet details

Code:

Select allEthernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 05)
        Subsystem: Realtek Semiconductor Co., Ltd. Device 0123
        Flags: bus master, fast devsel, latency 0, IRQ 42
        I/O ports at e800 [size=256]
        Memory at fdfff000 (64-bit, prefetchable) [size=4K]
        Memory at fdff8000 (64-bit, prefetchable) [size=16K]

[Code] ....

View 4 Replies View Related

Security :: How To Rate Limited IPTABLEs Treat A Screen Session On Ssh After Disconnection

Nov 3, 2010

Take this scenario If I have rate limited the connections to 4.(i.e if you attempt 4th connection you wont be able to login for some time.) If in a minute I get disconnected 3 times while I was already logged in on the server with a screen session, will I be able to login or I need to keep quite for a minute?

Quote:

-A INPUT -i eth0 -p tcp -m tcp --dport 22 -m state --state NEW -m recent --update --seconds 60 --hitcount 4 --name DEFAULT --rsource -j DROP
-A INPUT -i eth0 -p tcp -m tcp --dport 22 -m state --state NEW -m recent --set --name DEFAULT --rsource

View 5 Replies View Related

Ubuntu :: Disconnection And Connects To Unavailable Wifi - Authentication Required By Wireless Network

Jun 8, 2010

When my router switches off... the wifi signals go off... then why the hell ubuntu keeps on connecting to that very wifi like hell and when doesnt connect shows the prompt to manually connect... with the wifi key already filled in... whats the use of saving the key when it has to ask the question from me either to connect or not?? and if its isnt available... just wait when its available.. and for the prompt,i have only option to cancel(because wifi isnt available at that moment if i select connect it again tries to connect like hell..which it cant) and if i cancel it wont auto-connect when wifi does get available! what the heck?

Windows has this done the right way... when the wifi isnt available.. it dissconnects silently.. and when it becomes available connects silently.. why isnt this been done this way in ubuntu??

Ive attached an image..one can see in the image that it says "authentication required by wireless network" when there isnt any.. as router has gone down!

And the second thing i want to report is that there is no way to report this bug from ubuntu... the launchpad.net talks of going through bug reporting process which is done against a definite package... now how does a user know which package would be causing this error?? there should be a more clear process of reporting such bugs to ubuntu team... which a common man using ubuntu( ubuntu says its most user friendly of all distros right?) can report..

View 1 Replies View Related

Programming :: Use Generic Netlink Receive Function - Error "sendmsg(); If(recvmsg() < 0)"

Jan 2, 2010

i'am tring to use generic netlink and can't find function for blocking not busy waiting receive. I'll try to explain myself. Generic netlink receive mechanism based on callback function - when module receives something,this function invoked. But this is not so good if you need to send something and receive answer. I mean something like that :

sendmsg(); if(recvmsg() < 0) goto err; I need generic netlink recv() function, or some mechanism to implement it. I just want to stay in "recvmsg()" function until i have answer(until call_back function invoked).

View 1 Replies View Related

Programming :: Create A Message Forwarder Program That Receive A Message On Port A And Pass It On T Port B?

Sep 6, 2010

We are trying to create a message forwarder program that receive a message on Port A and pass it on t Port B. Also receive a message from Port C and Pass it on to Port D as follows.

[Code]...

View 4 Replies View Related

Programming :: Regarding Query Protocol On Internet?

Jul 17, 2011

There is a protocol in use - for example when I use Firefox to do a query through Google - as I type into the search field the browser sends my characters - one at a time - to the server. As I recall, at one time I found the specification but I'm pulling a blank. As I recall it does a POST of each character as I enter it, and the server responds before I have entered a <CR>. I want to write a client side program that uses that protocol and need to see the spec.

View 2 Replies View Related

Programming :: Automate Copy And Paste Of Files From The Internet?

Jul 28, 2010

Here is what I currently do and want to automate:

1) I manually enter a particular web site address in the browser.

2) When the page displays on my machine, it shows a number of links I need to visit, one after the other.

3) Each of these links display another page (file) from which I "cut and paste" information. I do this by highlighting manually the wanted info, click "copy" then select an open file on my computer, select "undo" if necessary to remove any previous content, click "paste" and then "save".

4) I then call a Yabasic program that reads the saved file and trims unwanted info.

5) At the completion of the Yabasic program, I click the web page tag, click the "back" button to return to the first page (since I am in the second) and click the next link in this first page till all links have been visited.

6) visit the next known web site and repeat 1 to 5

In an automated program, what I need to do is:

1) Visit the known page of the web site showing the links
2) save the page showing the links (the first page)
3) make a list of those links
4) visit each link one after the other and save its page from which I will programmatically (Yabasic) select info.
5) repeat 1 to 4

I can do this in "Yabasic" (which can issue Linux commands) or PHP although I do not know PHP much.the purpose of this is to associate towns and cities of the world with their respective political/geographical divisions and their respective time zone. This has to be done often because that data changes regularly.

View 3 Replies View Related

Programming :: How Proxy Server Get Html Page From Internet

Jun 15, 2010

im making client(browser) and proxy server application in linux and using c/c++....can any one guide me that how proxy server get page from internet and send it to the client (browser)?and how that page will be displayed on my browser??meanz that will be only text...if text then how i can display graphical page....

View 3 Replies View Related

Programming :: Update Software From Internet Code Examples

Jan 13, 2011

I've been thinking to adding the ability to update some code I've been working on from the internet. So basically writing some C/C++ code that on startup of the software looks across the next to a server to update itself. However I have no idea how to do this, can anyone point to to linux tutorials or examples which show how to do this?

View 3 Replies View Related

Programming :: Places On Internet To Find Projects For Learning To Program In C?

May 26, 2010

Essentially, I am reading the book "Absolute Beginner's Guide to C (Second Edition)", but the biggest problem is that it doesn't have problems nor projects to practice programming. Unfortunately, I do not have the greatest of an imagination to create my own ideas for problems to solve. Does anyone know of any sites that have good problems/projects to work on when I learn throughout the book?

View 6 Replies View Related







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