Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-04-2001, 08:59 AM   #1
LQ Newbie
Registered: Jul 2001
Posts: 2

Rep: Reputation: 0
Post pipe commands into processes

I need to get to know what ip adress I have. Therefor I use telnet ( list /status/ppp-statistics/rx-options/ipcp/dsl1 ).

How can I make a srcipt that shows me the lines that are shown by the telnet client.
I tryed something like that ( echo "list /status/ppp-statistics/rx-options/ipcp/dsl1" | telnet ), but it didn't work.

Does s.o. know how to do it?

Thx acren
Old 07-04-2001, 10:08 AM   #2
Senior Member
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
What do you need to do with it then? Is it so you can get to your server externally? If this is the case then you can always register a name with DynDNS ( that will follow your IP around when it changes, or you could run something like
cat /status/ppp-statistics/rx-options/ipcp/dsl1 | mail
so you get emailed your IP address.

Just a few thoughts, I don't know how much sucess you will have trying to script a standard telnet package... you might be able to do something similar with Perl, but you'd have to write the telnet part of it yourself I believe...

good luck!



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
pipe to many processes? Thinking Programming 4 09-20-2005 11:22 AM
send commands to background processes chatterbug89 Linux - General 2 07-13-2005 03:55 PM
How do I add start and stop commands to systems startup and shutdown processes? mlsbraves Slackware 1 11-25-2004 07:04 AM
What processes the Linux commands? Hero Doug Programming 3 10-30-2004 06:35 AM
monitoring active processes and identifying the required processes. gajaykrishnan Programming 2 08-13-2004 01:58 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:56 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration