Sponsored Content
Top Forums Shell Programming and Scripting extracting the ip address from ifconfig Post 302357274 by danmero on Tuesday 29th of September 2009 09:01:10 AM
Old 09-29-2009
awk can grep, no UUOC required.
Please post the output of
Code:
/sbin/ifconfig eth0

 

10 More Discussions You Might Find Interesting

1. Solaris

ifconfig bad address

hi all iam trying to set my eri0 interface but with little luck . when i set the ip using ipconfig i always get "bad adress".. moreover when i use ifconfig eri0 i can notice that the inet is 0.0.0.0 and the netmask 0 i am runnig solaris 9 on sparc . any helpis highly appreciated ... ... (2 Replies)
Discussion started by: ppass
2 Replies

2. IP Networking

Setting primary ip address with ifconfig

Hello, I have a server with two ip addresses. I need to make the ip address that's currently the secondary the primary. How do I use the ifconfig command and primary option? Thanks. (5 Replies)
Discussion started by: pmichner
5 Replies

3. IP Networking

ifconfig: ce401001: bad address

HI All, My interface card has failed.If i am giving the command to uplumb it i am getting an error. ce401001: flags=219040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER,FAILED,CoS> mtu 1500 index 3 inet 10.188.24.18 netmask ffffffc0 broadcast 10.188.24.63 # ifconfig... (2 Replies)
Discussion started by: sag71155
2 Replies

4. Shell Programming and Scripting

Extracting email address using basename

Is it possible to use a variable as the delimiter using basename? I have a num variable that will be changing in the filename now. The files could looke like this my.email.address@mydomain.com.VL010600_474 my.email.address@mydomain.com.VL020600_474... (2 Replies)
Discussion started by: Drenhead
2 Replies

5. Shell Programming and Scripting

how grep the inet address for in ifconfig command

hi, i want to know how to grep inet address for below below is the output of ifconfig command /home/JA> ifconfig eth0 Link encap:Ethernet HWaddr 00:11:0A:5B:2E:E9 inet addr:161.239.203.18 Bcast:161.239.203.127 Mask:255.255.255.128 UP BROADCAST RUNNING... (3 Replies)
Discussion started by: mail2sant
3 Replies

6. Shell Programming and Scripting

how to grep only IP address of e1000g0 using ifconfig -a

Hello All, Can someone show me how to cat "only the IP address of e1000g0" using ifconfig -a. i am trying to grep only the ip address (xx.xx.xx.xx) from the bunch of all other things like, broadcast address, IPV4, UP........and so on. thanks (1 Reply)
Discussion started by: solaix14
1 Replies

7. Shell Programming and Scripting

script to get IP address from ifconfig

I'm a newbie to linux, so pleases forgive me! I would like to find a script that I could use to extract a dynamic ip from the ppp0 and set it as a variable to be used in IPTables basically, if ppp0 ip address is 10.10.10.20, I would like a script that would set a var to 10.10.10.0. of... (9 Replies)
Discussion started by: speedy3k
9 Replies

8. IP Networking

IP Address not found in ifconfig/netstat

I'm working on an AIX Unix LPAR (AIX 3.5 00C3C9904C00 as returned by uname -a) I can access this box using telnet, port 22 using adress IP A and B A=AA.AA.XX.XX and B=AA.AA.YYY.YYY I can confirm these 2 are the same space, I can see I can't find address B listed anywhere... so I wonder what... (1 Reply)
Discussion started by: Isax50
1 Replies

9. Solaris

ifconfig - making netmask & broadcast address permanent?

hi, I am trying to configure one of my interfaces, but after reboot - i lose the changes to the netmask & broadcast address. I have added an entry in /etc/netmasks, but it doesnt pick up the new settings. any ideas - much appreciated. before reboot: eri0:... (3 Replies)
Discussion started by: badoshi
3 Replies

10. Shell Programming and Scripting

Script extracting ip address from MAC wifi card

Hi Everybody, Goal: From my backup box on my local network, knowing the Wifi MAC address of my laptop, I would like to dynamically identify which ip address is attributed to my laptop. The aim is to store this ip address in a local variable and that this information is retrieved by another... (11 Replies)
Discussion started by: freddie50
11 Replies
pyntor-selfrun(1)						      Pyntor							 pyntor-selfrun(1)

NAME
pyntor-selfrun - creation of self-extracting presentation archives SYNOPSIS
pyntor-selfrun [OPTIONS] presentation-archive|presentation-directory DESCRIPTION
Pyntor is a presentation tool which can display slides and effects of various formats. The tool pyntor-selfrun allows one to create self- extracting archives containing both the presentation and Pyntor itself, so that it can be run on computers where Pyntor itself is not installed. It also ensures independence of the corresponding Pyntor version, as future changes of the application do not affect the previ- ously created presentations. The way pyntor-selfrun works is that it takes the presentation-archive in question, packed as a tarball (which might be named *.pyntor), and the release tarball of Pyntor which must be present somewhere. Using a template file, it then creates the self-running and self-extracting script for distribution. In case the presentation-archive does not exist yet, pyntor-selfrun can create it automatically from a presentation-directory. This is use- ful even when not creating self-extracting archives, see the -a option. OPTIONS
-t, --template=templatefile Uses a template different from that one which is shipped with Pyntor and used by default. The template is a script in Python or another scripting language, which contains the variables %PYNTOR% and %ARCHIVE% which are replaced with the base64-encoded contents of the two files given as arguments to pyntor-selfrun. This option is not recommended for most cases. -a, --archive Creates a pyntor presentation-archive from a directory which contains a script file, local data files and optionally some local com- ponents. This is a convenience operation, since presentation archives are just tarballs, but in the future some checks might be done here. -r, --release=sourcetarball Specifies where to find Pyntor itself to include it into the self-extracting archive. The source tarball should be a released pyn- tor-*.tar.gz file. -h, --help Displays a summary of all available command line options. BUGS
In a future version, pyntor-selfrun should allow to create *.pyntor archives automatically by examining a script file, including only those files of Pyntor which it really needs. AUTHORS
Josef Spillner <josef@coolprojects.org> SEE ALSO
pyntor(1), pyntor-components(1) Cool Projects 0.6 pyntor-selfrun(1)
All times are GMT -4. The time now is 10:39 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy