Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Why does /bin contain binaries for builtins? Post 302489482 by glev2005 on Thursday 20th of January 2011 03:02:58 PM
Old 01-20-2011
Interesting, thanks!
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

/bin/sh: /usr/bin/vi: No such file or directory when doing crontab

I just set up an ftp server with Red Hat 5.2. I am doing the work, I'm baby stepping, but it seems like every step I get stuck. Currently, I'm trying to set up a crontab job, but I'm getting the following message: /bin/sh: /usr/bin/vi: No such file or directory. I see that vi exists in /bin/vi,... (3 Replies)
Discussion started by: kwalter
3 Replies

2. UNIX for Dummies Questions & Answers

fuser: difference with bin/sh and bin/ksh shell script

Hi, I have a problem I don't understand with fuser. I launch a simple shell script mysleep.sh: I launch the command fuser -fu mysleep.sh but fuser doesn't return anything excepted: mysleep: Then I modify my script switching from #!/bin/sh to #!/bin/ksh I launch the command fuser -fu... (4 Replies)
Discussion started by: Peuj
4 Replies

3. Shell Programming and Scripting

program name and function name builtins

Hi Is there a way to get the program/script name or function name usng built ins. Like in many languages arg holds the program name regards (2 Replies)
Discussion started by: xiamin
2 Replies

4. Programming

pthread_mutex_lock in ANSI C vs using Atomic builtins of GCC

I have a program which has 7-8 threads, and lots of shared variables; these variables (and also they may not the primitive type, they may be enum or struct ), then they may read/write by different threads at the same time. Now, my design is like this, typedef unsigned short int UINT16;... (14 Replies)
Discussion started by: sehang
14 Replies

5. UNIX for Advanced & Expert Users

Writing Custom Builtins for KSH93

I am looking to create some ksh93 extensions using the custom builtin feature. I can successfully create a builtin function, load it using the builtin -f command and get an output. However, I want to get/set values of KSH variables from within my built-in. For example, lets say I am creating... (2 Replies)
Discussion started by: a_programmer
2 Replies

6. OS X (Apple)

When to use /Users/m/bin instead of /usr/local/bin (& whats the diff?)?

Q1. I understand that /usr/local/bin means I can install/uninstall stuff in here and have any chance of messing up my original system files or effecting any other users. I created this directory myself. But what about the directory I didn't create, namely /Users/m/bin? How is that directory... (1 Reply)
Discussion started by: michellepace
1 Replies

7. Solaris

What is the difference between xpg4/bin and usr/bin?

Hi Experts, I found that the same commands(sort, du, df, find, grep etc.) exists in both dir. What is the difference to use them? i.e: to use xpg4/bin/grep and usr/bin/grep My OS version is SunOS 5.10 Regards, Saps (7 Replies)
Discussion started by: saps19
7 Replies

8. UNIX for Dummies Questions & Answers

Shell and bash builtins...

Not sure if this is the right forum but I have collated a listing of shell and bash builtins. Builtins is a loose word and may include the '/bin' drawer/folder/directory but NOT any others in the path list. In the case of my Macbook Pro, OSX 10.7.5 the enabled internals is also listed... ... (1 Reply)
Discussion started by: wisecracker
1 Replies

9. AIX

Redistribution bin required for AIX. j7r164redist.7.1.0.25.bin

Hi, I am planning to install a version of Informatica on my AIX box. It requires a specific java build in pap6470_27sr2-20141101_01(SR2). The current link for IBM 64-bit SDK for AIX®, JavaTM Technology Edition, Version 7 Release 1 has a more recent version in j7r164redist.7.1.0.75.bin. Is... (4 Replies)
Discussion started by: meetpraveens
4 Replies

10. Shell Programming and Scripting

Usage of #!/bin/sh vs #!/bin/bash shell scripts?

Some question about the usage of shell scripts: 1.) Are the commands of the base shell scripts a subset of bash commands? 2.) Assume I got a long, long script WITHOUT the first line. How can I find out if the script was originally designed für "sh" or "bash"? 3.) How can I check a given... (3 Replies)
Discussion started by: pstein
3 Replies
IPv6Addr(3pm)						User Contributed Perl Documentation					     IPv6Addr(3pm)

NAME
Net::IPv6Addr -- check validity of IPv6 addresses SYNOPSIS
use Net::IPv6Addr; Net::IPv6Addr::ipv6_parse($addr); $x = new Net::IPv6Addr("dead:beef:cafe:babe::f0ad"); print $x->to_string_preferred(), " "; DESCRIPTION
"Net::IPv6Addr" checks strings for valid IPv6 addresses, as specified in RFC1884. You throw possible addresses at it, it either accepts them or throws an exception. If "Math::Base85" is installed, then this module is able to process addresses formatted in the style referenced by RFC1924. The public interface of this module is rather small. new Parameters A string to be interpreted as an IPv6 address. Returns A "Net::IPv6Addr" object if successful. Notes Throws an exception if the string isn't a valid address. ipv6_parse Parameters A string containing an IPv6 address string. Optionally, it may also include a "/" character, and a numeric prefix length, in that order. -or- An IPv6 address string. Optionally, a numeric prefix length. Returns What you gave it, more or less, if it does parse out correctly. Notes Throws an exception on malformed input. This is not an object method or class method; it's just a subroutine. is_ipv6 Parameters A string containing an IPv6 address string. Optionally, it may also include a "/" character, and a numeric prefix length, in that order. -or- An IPv6 address string. Optionally, a numeric prefix length. Returns What you gave it, more or less, if it does parse out correctly, otherwise returns undef. Notes This is not an object method or class method; it is just a subroutine. ipv6_chkip Parameters An IPv6 address string. Returns Something true if it's a valid address; something false otherwise. to_string_preferred Parameters If used as an object method, none; if used as a plain old subroutine, an IPv6 address string in any format. Returns The IPv6 address, formatted in the "preferred" way (as detailed by RFC1884). Notes Invalid input will generate an exception. to_string_compressed Parameters If used as an object method, none; if used as a plain old subroutine, an IPv6 address string in any format. Returns The IPv6 address in "compresed" format (as detailed by RFC1884). Notes Invalid input will generate an exception. to_string_ipv4 Parameters If used as an object method, none; if used as a plain old subroutine, an IPv6 address string in any format. Returns The IPv6 address in IPv4 format (as detailed by RFC1884). Notes Invalid input (such as an address that was not originally IPv4) will generate an exception. to_string_ipv4_compressed Parameters If used as an object method, none; if used as a plain old subroutine, an IPv6 address string in any format. Returns The IPv6 address in compressed IPv4 format (as detailed by RFC1884). Notes Invalid input (such as an address that was not originally IPv4) will generate an exception. to_string_base85 Parameters If used as an object method, none; if used as a plain old subroutine, an IPv6 address string in any format. Returns The IPv6 address in the style detailed by RFC1924. Notes Invalid input will generate an exception. to_bigint Parameters If used as an object method, none; if used as a plain old subroutine, an IPv6 address string in any format. Returns The BigInt representation of IPv6 address. Notes Invalid input will generate an exception. to_array Parameters If used as an object method, none; if used as a plain old subroutine, an IPv6 address string in any format. Returns An array [0..7] of 16 bit hexadecimal numbers. Notes Invalid input will generate an exception. to_intarray Parameters If used as an object method, none; if used as a plain old subroutine, an IPv6 address string in any format. Returns An array [0..7] of decimal numbers. Notes Invalid input will generate an exception. to_string_ip6_int Parameters If used as an object method, none; if used as a plain old subroutine, an IPv6 address string in any format. Returns The reverse-address pointer as defined by RFC1886. Notes Invalid input will generate an exception. in_network_of_size Parameters If used as an object method, network size in bits If used as a plain old subroutine, an IPv6 address string in any format and network size in bits. Network size may be given with / notation. Returns Network IPv6Addr of given size. Notes Invalid input will generate an exception. in_network Parameters If used as an object method, network and its size in bits If used as a plain old subroutine, an IPv6 address string in any format network address string and size in bits. Network size may be given with / notation. Returns Something true, if address is member of the network, false otherwise. Notes Invalid input will generate an exception. BUGS
probably exist in this module. Please report them. AUTHOR
Tony Monroe <tmonroe plus perl at nog dot net>. The module's interface probably looks like it vaguely resembles Net::IPv4Addr by Francis J. Lacoste <francis dot lacoste at iNsu dot COM>. Some fixes and subroutines from Jyrki Soini <jyrki dot soini at sonera dot com>. HISTORY
This was originally written to simplify the task of maintaining DNS records after I set myself up with Freenet6. Interesting that there's really only one DNS-related subroutine in here. SEE ALSO
RFC1884, RFC1886, RFC1924, perl, Net::IPv4Addr, Math::Base85, Math::BigInt perl v5.12.4 2011-08-28 IPv6Addr(3pm)
All times are GMT -4. The time now is 10:00 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy