Ubuntu :: Ping - CPU - Memory - Coding ?
Aug 3, 2011
I am writing a script that will ping a server and then do a command if it gets a ping that is less than 100ms or more than 100ms. Basically, I need to have a variable for the ms.
Here is an example script.
Code:
Now, all I need to do is get a variable from the ping. I know I can do this:
Code:
But that just sets the whole line, I only want the ping, without "ms" at the end.
So basically, if I ping 25.25.25.25 and get 43.872 ms I want $pingms to equal 43.872.
Also, how can I do this with free, for example:
Code:
I want $ramavail to equal the amount available and I want $ramtotal to equal the total amount.
View 5 Replies
ADVERTISEMENT
Jul 15, 2011
I am using an virtual machine. where I need to ping from one machine to another. earlier I was able to ping. But after going to google.com once, I cannot ping back to this machine.
But if I gave ping -I eth1 <IP> then I can ping.
I cannot install any package, so tell me solution which includes not installing any package.
View 2 Replies
View Related
Jul 24, 2010
I have two machines on this network, one running Ubuntu and the other running Fedora.
When I'm using the Wireless network on the Ubuntu machine, I cannot ping the Fedora machine. Everything else works. I can browse the net fine.
If I switch over to the Wired Network then I can ping the other machine.
I don't understand why ping doesn't work only over the Wireless. I can ping the router so I'm guessing it's getting blocked by the router but I didn't block ICMP traffic.
I tried asking on IRC and they ran out of ideas too to find out where the problem is.
View 7 Replies
View Related
May 6, 2010
I recently downloaded Metasploit framework for ubuntu but i got an error which says could not open <file location>
Saying gedit has not been able to detect the character coding. Check that you are not trying to open a binary file.Select a character coding from the menu and try again
View 9 Replies
View Related
Aug 5, 2010
When i ping www.google.es, i get something like:Quote:
ping www.google.es
(wait 20 seconds)
64 bytes from 66.249.92.104: icmp_seq=2 ttl:53 time=80 ms
[code].....
View 2 Replies
View Related
May 2, 2010
Zen-coding is a great gedit plugin for html & css development.I download the files and unpack them into ~/.gnome2/gedit/plugins/.After open gedit I can't find zencoding in the Gedit Preference.
View 9 Replies
View Related
Apr 27, 2011
I'm doing some shell scripting in nano, but code is much simpler to read when is color coded.... is there a terminal editor that supports color coding?
View 3 Replies
View Related
Feb 23, 2011
This applies to my 2 opensuse PC's, my Windows PC is fine.I can ping a hostname, say "PC1" but I can not ping PC1.domain.local (even the host PC can not ping it's own FQDN). When I ping just the hostname the ping stats even list the FQDN.Onto the next issue, since all my PC's, have the domain prefix domain.local, my Synology can not. I can ping it's IP and that is it. I can resolve it's name with nmblookup just fine tho and that is what is killing me. How is this not resolving.Even weirder, I can browse to "Synology" in Network Servers under places on the slab.
View 3 Replies
View Related
May 13, 2011
Even ping google's ip address doesn't work. unknown host error using backtrack4 able to browse net with these settings.
My network settings:
What's the problem with these settings...
View 10 Replies
View Related
Jul 9, 2010
Ive got a problem on my server ....installed Debian 5 , Webmin and than syscp settung up syscp ready ....
I try to ping "localhost" ansver ping: unknown host
I try to ping "localhost." there is a host with IP 127.0.0.1
I need it to change it in "localhost"
Is that the bind9 maybe?
View 1 Replies
View Related
Feb 24, 2011
I want coding of packet sniffer that runs on red hat and use c++ language.
View 2 Replies
View Related
May 13, 2011
Yes it's me again, about to ask a foolish question.I've ran man on this commands, but they don't make any reference to their color, nor is it mentioned in the Bible. As I go through such as /sbin what does the color of the commands mean, like arch is green, awk is blue, and then there is those that have a red background such as cgexec?Then I go into /etc and then there's yum.repos.d there is no man for it, so I typed it in and got "command not found", so then I went in SU mode and "vi yum.repos.d and I get "yum.repos.d" is a directory,No such file or directory. So just what is yum.repos.d, I thought this is where I add more repositories.
View 3 Replies
View Related
Jun 15, 2011
I was asked to do a project on channel coding with different techniques. FEC, ARQ and Hybrid. Does NS2 support such coding?
View 2 Replies
View Related
Nov 29, 2010
Below is my code to create *.bz2 file.
<?php
//Moving file to temporary directory for compression
move_uploaded_file($_FILES["file"]["tmp_name"],"c:/" . $_FILES["file"]["name"]);
$url="c:/".$_FILES["file"]["name"];
//File compression
[Code]....
Anyone know, how to unzip the file ? I've tried the above code to unzip it but it creates only 1kb of file for any files.
View 3 Replies
View Related
Apr 16, 2011
Can I get someone that is using Ubuntu/Lucid and Firefox as browser to run a test for me? Can you go to this website and then type the either the word "HIGH" or the word "LOW" in the search box and then tell me if you get the same bunch of program error codings that I get when I try this ? Want to see if this is a problem with just my computer setup or with the websites programming. [URL].
View 2 Replies
View Related
Apr 4, 2010
I am trying to see how programs for cdroms use reed-solomon coding. I looked in the site lxr.linux.no , but couldnt get anything there, too much details present.
View 2 Replies
View Related
Jun 15, 2010
writing multi threaded programs in C,C++.
View 3 Replies
View Related
Jan 15, 2011
In Fedora, I used the ls -l command to see the directory listing. But I noticed that while all .c files were being shown in green , there was one .c file which was being shown in black.How can two files having the same extension be executable /normal?
View 1 Replies
View Related
Feb 11, 2010
What sort of libraries can i use for coding of sniffer program for windows and linux? The sniffer that i want to code is for capturing the list of connected clients to AP wirelessly. I do know that the wireless NIC needs to be in 'monitor' mode in both windows and linux.
View 4 Replies
View Related
Sep 11, 2010
[URL]...In this bug, you'll see that I actually fixed my own problems that surfaced when building GNOME Shell from source.
View 1 Replies
View Related
Mar 19, 2010
I'm working on RHEL5 dealing with AS (ActionScript) files in Linux GVIM Editor but everything is in blue color. Can i set color coding for my keywords?
View 3 Replies
View Related
Apr 6, 2011
I have a debian server installed with a static ip. Now i am able to ping my ip, but when i try to configure a domain name with the nameserver as my ip, i am not able to ping the domain name
eg:
View 7 Replies
View Related
Feb 1, 2011
I just installed my first EVER bind DNS server. I am running bind9 on Ubuntu 10.04. Everything seems to be working great except one thing: If I ping a host that I have set up in bind by its HOSTNAME the pings take 5-6 seconds to reply/print to the screen between each echo response. If I ping by the host's IP address, they echo back very quickly.
I have read that IPv6 can cause this, but I have disabled it in /etc/sysctl.conf and the problem still exists.
I know everyone says this can't be a DNS issue, but this never was an issue with dnsmasq (which i was using prior), and it doesn't make sense that the ping are ONLY slow when pinging by hostname and not IP.
Configs below:
Ping by hostname - there is a 5-6 second delay between each one of the responses:
Code:
Ping by IP - the responses come VERY quickly one after the other:
Code:
/etc/resolv.conf:
Code:
Code:
rev.0.168.192.in-addr.arpa:
Code:
View 10 Replies
View Related
Apr 29, 2010
So, I have an Virtual Machine running CentOS 5.4. It sits behind a hardware firewall which also does NAT'ing. I've set up plenty of these, so I know for sure the firewall and NAT rules are set up correctly. From the host, I can ping anything in my subnet and the gateway. But I can't ping anything else beyond the gateway. I can perform DNS queries and when I try to ping, it finds the appropriate IP address.But from the outside, I can ping the PUBLIC address (It's a 1 public to 1 private address NAT, not 1 public to multiple private). I've tried it with IPTABLES on and off, with no change.
View 11 Replies
View Related
May 26, 2010
I have Mandriva One 2009.0 (192.168.1.100) on one box and Mandriva Free 2010.0 (192.168.1.118) on the other. I can ping router (192.168.1.1) from both of these boxes but I can't ping one box to the other and the other way around. What's going on?.
Do I have to change some settings in router?. Or is it firewall issue on those two machines?. Both of these boxes are connected by cable. Symbol of the router: TL-WR340G.
View 2 Replies
View Related
Oct 10, 2010
I hesitated on the title, generally can solve problems w/o this (20+ year *nix/linux experience).
hardware Dell 1505, ATI X1400 (nVidia went south replaced with ATI, used at this stage of life for this laptop).Acer x221w external monitor.
Recently upgraded to 10.04 (should have waited, but hadn't upgraded in a long time).
No real fixes found for the ati X1400 in searches (fixed it on 9.04 and 9.10).
So to troubleshoot, wanted to go to console mode, and start X manually and hopefully debug the config to get the thing working.
So, I get ready to take it down off of X only to find, there are no more consoles???
To work this out and to even come to an end result, when X does not work, you need a console to debug it. There is code in /etc/init.d/console-screen.sh for starting consoles...
Yet they do not start, notices some comments about doing it 'clever' in there, all I can say is 'clever' is more risky than workable, it worked before, why change it? It did not make it better, it made it harder, so now, to get it to work, I have to go debug someone else's 'clever' code? BTW, there are 'getty' running - but still no console.
Not so clever... We need a fix to get (at least at this level), the consoles running, so, where are you 'clever coder', tell us how to turn them back on.
Why in /etc/init/tty*.conf do they not start?
I really find it hard to say anything critical to something that is free, in general, I will not even comment, but just go ahead and find the fix myself, But to even address this, we (IMO) need pretty much a fix for the broken console access, before we can even address X in certain configurations.
A long time user of RH, even back to Yygdrasil, Soft Landing days, I was VERY impressed with ubuntu over the others for a desktop (got it on the Dell), but now, at 10.04, it has become cumbersome and broken.
It is a good product, but we need to get it back to where it is not so bleeding edge and broken.
View 1 Replies
View Related
May 7, 2009
I've been a PHP developer for about 6 years now - the last two years I have been pretty inactive though. Just recently though, I have been reading resources on all the different programming patterns (Factory, Singleton, Registry, Observer, MVC, etc) to try and get my head around good programming techniques. For myself though I find that I can only truly understand how these methods work when I am forced to do them myself.I have a large project I am doing at my workplace (me only) that involves building a very complex PHP application.
I would like to know your professional opinion; should I spend the extra time to program this PHP application myself and really, properly learn all these different programming patterns? Or, should I just build on top of a PHP framework like the Zend Framework for speed's sake (and flexibility/features)?
I have found understanding exactly how the Zend Framework works hard, just because I haven't been exposed to using these programming patterns myself. I hate that - I want to fully understand exactly what is happening in my application and know exactly how each part relates to others.
View 2 Replies
View Related
Oct 31, 2010
i am using front end as java and back end RHEL5.i am trying to calling a bash script with java. but i am facing problem.i am using following java coding to use call the bash script
import java.util.*;
import java.io.*;
public class b
[code]....
View 4 Replies
View Related
Jul 21, 2010
I need a tool to convert lots of C codes to a unified coding style. What tool can I use in Linux ?
View 1 Replies
View Related
Feb 3, 2010
From this thread I've decided to try add a feature of removing local port forwardings in ssh.Here are some very ugly and not-yet working hacks what I made so far:
* Patch for channels.c
* Patch for channels.h
* Patch for clientloop.c
I was clearly expecting this to work without any troubles-everything seem to be logically correct, but I made a programming mistake somewhere: don't know where, maybe you will point me to this?Many sites say there is a WAY AROUND with -D param(starting socks proxy as a tunnel-generator), added since 5.2, but I don't need that way around. I need a way through. I use exact ports for exact services and if I want to change it runtime I'd like to have ability to do so.If you have other ideas or points instead of coding this, please share them here & here(original question).
View 2 Replies
View Related