Sponsored Content
Full Discussion: Lan & Global IP
Special Forums IP Networking Lan & Global IP Post 302940397 by RudiC on Saturday 4th of April 2015 02:56:16 PM
Old 04-04-2015
Nice! Some opportunities to simplify:
Code:
lynx -dump https://www.unix.com/what-is-my-ip.php | awk '/DNS Lookup For/ {print "External: ", $NF}'
External:  215.163.234.18
ifconfig | awk -F"[ :]*" '/inet addr/ {print "Internal: ", $4}'
Internal:  10.1.1.1
Internal:  127.0.0.1

This User Gave Thanks to RudiC For This Post:
 

10 More Discussions You Might Find Interesting

1. Solaris

How to configure private LAN and coporate LAN on the same machine-Solaris10

Hi , I am trying to configure a private LAN and corporate LAN on the same machien on Solaris 10. How can I achieve this? Thanks (1 Reply)
Discussion started by: deedee
1 Replies

2. Solaris

How can we copy a directory from Global to Non-global zone?

Hi All, How can we copy a directory from global zone to non-global zone using SCP command? (8 Replies)
Discussion started by: vijaysachin
8 Replies

3. Solaris

Is there two different kernel`s running in global and non global zone?

Hi All, I want to know for non global zone there will be different kernal running? (1 Reply)
Discussion started by: vijaysachin
1 Replies

4. Solaris

How to access ENV variables of non global zones in global zone???

Hi Guys, My requirement is I have file called /opt/orahome/.profile in non global zone. PATH=/usr/bin:/usr/ucb:/etc:/usr/sbin:/usr/local/bin:/usr/openwin/bin:. export PATH PS1="\${ORACLE_SID}:`hostname`:\$PWD$ " export PS1 EDITOR=vi export EDITOR ENV=/opt/orahome/.kshrc export ENV... (1 Reply)
Discussion started by: vijaysachin
1 Replies

5. Solaris

How to see global hostname by logging in non global zones?

Hi guru Could any one help me by letting me know, how to see global hostname by logging in non global zones Regards (2 Replies)
Discussion started by: girish.batra
2 Replies

6. Solaris

How to identify a global or non-global Solaris server?

Hi, I have Solaris zone configured with Solaris 9 and 10. In Solaris 10(non global), I use the command “zonename” to get whether it is global or non-global server. For Solaris 9, what command I can use to get whether it is global or non-global server. Regards, Kalai :confused: (25 Replies)
Discussion started by: kalpeer
25 Replies

7. IP Networking

Local Lan, no-ip directed DNS forward, surf within lan

Hi, We have a website running on a local centos 5.4 surfer, static IP. The domain.com uses no-ip.com to take care of the DNS, it forwards all to my server. My router receives the port 80 call, routes it to my server and the world can see domain.com perfectly fine. However, we cannot see... (3 Replies)
Discussion started by: lawstudent
3 Replies

8. Solaris

Global and non-global zone resource sharing - tricky

hi all, Just a simple question but i cant get the answers in the book - In my globalzone , assuming i have 4 cpus (psrinfo -pv = 0-3), if i set dedicated-cpu (ncpus=2) for my local zone Is my globalzone left with 2 cpus or still 4 cpus ? Does localzone "resource reservation.e.g. cpu in... (6 Replies)
Discussion started by: javanoob
6 Replies

9. Solaris

Date and time change in global and non global zone

Hi, If I change date and time in global zone, then it will affect in non global zones. During this process what files will get affect in non global zones and which mechanism it's using to change. gloabl zone:Solaris 11.3 X86 TIA (1 Reply)
Discussion started by: Sumanthsv
1 Replies

10. UNIX for Beginners Questions & Answers

Question about global environment variables & fork() exec()

Hello... And thanks in advance for any help anyone can offer me on my question! I've been doing a lot of reading to try and find my answer... But I haven't had any luck What I'm trying to understand is where a child process inherits global environment variables from? I understand the exec()... (2 Replies)
Discussion started by: bodisha
2 Replies
Device::USB::PCSensor::HidTEMPer::NTC::External(3pm)	User Contributed Perl Documentation   Device::USB::PCSensor::HidTEMPer::NTC::External(3pm)

       Device::USB::PCSensor::HidTEMPer::NTC::Internal - The HidTEMPerNTC external sensor

VERSION
Version 0.02 SYNOPSIS
None DESCRIPTION
This is the implementation of the HidTEMPerNTC external sensor. CONSTANTS o MAX_TEMPERATURE The highest temperature(150 degrees celsius) this sensor can detect. o MIN_TEMPERATURE The lowest temperature(-50 degrees celsius) this sensor can detect. o INITIAL_GAIN The initial gain value used to calculate voltage returned o CALIBRATION_VALUES Values used to calculate Volt7705Calibration METHODS o new() Returns a new External sensor object. o celsius() Returns the current temperature from the device in celsius degrees. The formula used to calculate value based on a calibrated key value is created using the Eureqa tool from Cornell Computational Synthesis Lab, http://ccsl.mae.cornell.edu/eureqa. Resulting in the use of this formula instead of the provided number list: f(y)=66.7348/(66.7275/(67.8088 - 9.70353*log(0.000251309 + y*y)) - 0.21651) If you find another formula that is more accurate please drop me a line. The data used can be found in the source code of this file. INHERIT METHODS FROM
Device::USB::PCSensor::HidTEMPer::Sensor DEPENDENCIES
This module internally includes and takes use of the following packages: use Carp; use Time::HiRes qw / sleep /; use Device::USB::PCSensor::HidTEMPer::Sensor; This module uses the strict and warning pragmas. BUGS
Please report any bugs or missing features using the CPAN RT tool. FOR MORE INFORMATION
None AUTHOR
Magnus Sulland < msulland@cpan.org > ACKNOWLEDGEMENTS
This code includes findings done by Robin B. Jensen, http://www.drunkardswalk.dk, when converting the received hex values into volt. COPYRIGHT &; LICENSE Copyright (c) 2010 Magnus Sulland This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.10.1 2010-07-24 Device::USB::PCSensor::HidTEMPer::NTC::External(3pm)
All times are GMT -4. The time now is 04:38 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy