simple script to alert if internet not working?

2010-06-13 Thread fuzzylogic25
Hi, I am constantly automaticaly downloading a few things on the internet but since my internet connection is unstable, it sometimes wont work. Thing is the internet will appear to be connected, but no website can be accessed and no program can successfully connect to any location. I can fix this

Re: String replacements leak small amounts of memory each time

2010-06-13 Thread Chet Ramey
On 6/13/10 5:33 PM, Øyvind Hvidsten wrote: > It could be logical leaks, or whatever is the correct english term for > them. Memory that's used, and kept track of, but not used again, and not > freed until the program shuts down. The memory usage is constantly > increasing. I have a process using 3

Re: String replacements leak small amounts of memory each time

2010-06-13 Thread Øyvind Hvidsten
It could be logical leaks, or whatever is the correct english term for them. Memory that's used, and kept track of, but not used again, and not freed until the program shuts down. The memory usage is constantly increasing. I have a process using 3 gigs now, and it just runs one of those testcas

Re: cd multiple levels up?

2010-06-13 Thread Freddy Vulto
Peng Yu gmail.com> writes: > I frequently need do cd multiple levels up. For example, > > cd ../.. > cd ../../../../ > > It would be convenient to type something like "cd 2" or "cd 4". Is > there a command for this? I've written a `cdots' shell script, providing aliases .. ... etc. with a

Re: String replacements leak small amounts of memory each time

2010-06-13 Thread Chet Ramey
On 6/13/10 11:17 AM, oyvi...@dhampir.no wrote: > Configuration Information [Automatically generated, do not change]: > Machine: i486 > OS: linux-gnu > Compiler: gcc > Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i486' > -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i486-pc-linux-gnu' > -DC

String replacements leak small amounts of memory each time

2010-06-13 Thread oyvindh
Configuration Information [Automatically generated, do not change]: Machine: i486 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i486' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i486-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='ba

RE: Re: FW: RE: cd multiple levels up?

2010-06-13 Thread Christopher Bratusek
I haven't written that function, just found it around the web. > -Ursprüngliche Nachricht- > Von: Dennis Williamson > Gesendet: So. 13.06.10 (16:18) > An: Christopher Bratusek > Betreff: Re: FW: RE: cd multiple levels up? > > Why do you use seq when Bash has "for ((i=1; i<=$1; i++))"? >

FW: RE: cd multiple levels up?

2010-06-13 Thread Christopher Bratusek
... Sorry, I forgot that my webmailer doesn't handle MLs correctly.   -weitergeleitete Nachricht- Von: "Christopher Bratusek" [zang...@freenet.de] Gesendet: So. 13.06.10 (15:42) An: "Peng Yu" [pengyu...@gmail.com] Betreff: RE: cd multiple levels up? You may check this one:   up () {   

cd multiple levels up?

2010-06-13 Thread Peng Yu
Hello, I frequently need do cd multiple levels up. For example, cd ../.. cd ../../../../ It would be convenient to type something like "cd 2" or "cd 4". Is there a command for this? -- Regards, Peng