Re: [newbie] Current IP Address
Well you should be using some sort of connection software. I used kppp personally, and had no real "problems" with it. When connected it will tell you that it's done so. But you can set kppp to not disconnect when you log out. As long as the machine is booted, it will stay connected, of course having an IP address. Personally, I always ran the /sbin/ifconfig when I wanted to know when I was connected. It told me my IP address and some other info, and that's how I knew. I'm sure there are applets or something that could tell you. I think gkrellm has a built in applet to tell you your connect speeds, or tell you that traffic's going across. It may be able to tell you that you're connected as well, but I'm not sure. (Gkrellm is on one of the Mandrake 8 CDs as I recall.) Other then that, I don't konw what to suggest. Yes you can ping another machine, but you may ping a machine behind a firewall, or one that's down for the moment then you start to trouble shoot something that's not actually broke. If you have an external modem, which I think everybody should, but I won't get into that debate, the lights on the front will let you know. You'll start to know what the lights mean and what lights should be there. tdh T. Holmes - UNIXTECHS.org [EMAIL PROTECTED] - "Real Men Us Vi!" | Hi, | Me again ;-) | How can I check to see if my computer is currently dialled out or not? | | TIA, | | Jord | | On Friday 08 June 2001 13:43, you wrote: | > Try and grep out the information you need from the command /sbin/ifconfig. | > | > If you're root, all you need is ifconfig, since it's in your path name, | > however any other user, ifconfig is not. But that command will give you a | > lot of info, one of which is the IP address. | > | > Something like the following command should give you the IP address. | > | > /sbin/ifconfig eth0 | grep inet | cut -d ":" -f 2 | cut -d " " -f 1 | > | > Since it sounds like you're using a dial-up account, you'll substitue eth0 | > for ppp0. (I think that's what it's called, been a long time since I've | > dialed in. Just run the ifconfig command when your dialed in to see what | > it looks like.) | > | > But that command will weed out just the IP Address and print it out for | > you. tdh | > | > -- | > T. Holmes | > - | > UNIXTECHS.org | > [EMAIL PROTECTED] | > - | > "Real Men Us Vi!" | > | > | Hi, | > | I'm trying to write a bash script which needs the current IP address that | > | I have been assigned by my ISp at any particular moment. How can I do | > | this? | > | | > | TIA, | > | | > | Jord | > | > -- | --
Re: [newbie] Current IP Address
It was Fri, 8 Jun 2001 18:57:15 -0400 when Jordan Elver wrote: >Hi, >Me again ;-) >How can I check to see if my computer is currently dialled out or not? You can simply ping www.yahoo.com If it responds, you're online. (Unless you work there ;-) Paul -- You never learn anything by doing it right. http://nlpagan.net - Registered Linux User 174403 Linux Mandrake 7.2 - Sylpheed 0.4.66 ** http://www.care2.com - when you care **
Re: [newbie] Current IP Address
Hi, Me again ;-) How can I check to see if my computer is currently dialled out or not? TIA, Jord On Friday 08 June 2001 13:43, you wrote: > Try and grep out the information you need from the command /sbin/ifconfig. > > If you're root, all you need is ifconfig, since it's in your path name, > however any other user, ifconfig is not. But that command will give you a > lot of info, one of which is the IP address. > > Something like the following command should give you the IP address. > > /sbin/ifconfig eth0 | grep inet | cut -d ":" -f 2 | cut -d " " -f 1 > > Since it sounds like you're using a dial-up account, you'll substitue eth0 > for ppp0. (I think that's what it's called, been a long time since I've > dialed in. Just run the ifconfig command when your dialed in to see what > it looks like.) > > But that command will weed out just the IP Address and print it out for > you. tdh > > -- > T. Holmes > - > UNIXTECHS.org > [EMAIL PROTECTED] > - > "Real Men Us Vi!" > > | Hi, > | I'm trying to write a bash script which needs the current IP address that > | I have been assigned by my ISp at any particular moment. How can I do > | this? > | > | TIA, > | > | Jord > > --
Re: [newbie] Current IP Address
Try and grep out the information you need from the command /sbin/ifconfig. If you're root, all you need is ifconfig, since it's in your path name, however any other user, ifconfig is not. But that command will give you a lot of info, one of which is the IP address. Something like the following command should give you the IP address. /sbin/ifconfig eth0 | grep inet | cut -d ":" -f 2 | cut -d " " -f 1 Since it sounds like you're using a dial-up account, you'll substitue eth0 for ppp0. (I think that's what it's called, been a long time since I've dialed in. Just run the ifconfig command when your dialed in to see what it looks like.) But that command will weed out just the IP Address and print it out for you. tdh -- T. Holmes - UNIXTECHS.org [EMAIL PROTECTED] - "Real Men Us Vi!" | Hi, | I'm trying to write a bash script which needs the current IP address that I | have been assigned by my ISp at any particular moment. How can I do this? | | TIA, | | Jord | --
[newbie] Current IP Address
Hi, I'm trying to write a bash script which needs the current IP address that I have been assigned by my ISp at any particular moment. How can I do this? TIA, Jord