Sponsored Content
Full Discussion: One liners, quick rant...
The Lounge What is on Your Mind? One liners, quick rant... Post 302977419 by cero on Monday 18th of July 2016 03:05:24 AM
Old 07-18-2016
If my memory serves me right the SAP application offers you a function that lets you execute a single line of code and I guess there are other applications that offer you a similar function. I understand the design decission to keep the code within that application and not to use a script, especially when clusters and multiple applicationservers are involved.
 

4 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Where can I rant?

First of all, apologies to the admins for not reading the rules totally and missing the bit about ranting off about other OSs. But that raises a question. Where do you go to have a good rant, to vent your disgust at various corporations and thier hideous behaviour? :confused: (2 Replies)
Discussion started by: u6ik
2 Replies

2. Shell Programming and Scripting

awk - one liners

Guys, I have a requirement like this. A file has >5K records always. Separated by "|", it has 30 fields for each line. In some lines, I am getting an odd field. say, the 15th field is supposed to be 2 characters but comes in as >2. In this case, for resolving this I need to copy the value of... (6 Replies)
Discussion started by: PikK45
6 Replies

3. What is on Your Mind?

Those simple one liners

I wanted to say LOL and punch my face when I saw post#11 (where Don_Cragun even reduced the string manipulation with a simple regex) in the thread https://www.unix.com/shell-programming-scripting/220553-add-0-start-filename-2.html I mean, when things can be done with just a one liner, sometimes I... (6 Replies)
Discussion started by: ahamed101
6 Replies

4. What is on Your Mind?

A rant...

Hi guys... (Apologies for any typos etc...) This is basically a rant. I have been doing kids level projects and writing code to suit since around 1982, for the uProfessor, for the Sinclair Spectrum and later for the QL, IBM-XT in MS-DOS and after that for a 386DX40 up to Windows 95, until I... (3 Replies)
Discussion started by: wisecracker
3 Replies
RUNIDN(1)						      General Commands Manual							 RUNIDN(1)

NAME
runidn - A script to allow applications to use internationalized domain names. SYNOPSIS
runidn [-e local-codeset] program-name [args..] DESCRIPTION
runidn enables applications to use internationalized domain names without recompilation. Just add ``runidn'' before the application-name, and the application can handle non-ASCII domain names. For example, you can do: % runidn telnet non-ASCII-hostname Before using runidn, you should set up properties related to internationalized DNS by configuring idnkit's configuration file idn.conf. See idn.conf(5) which describes the configuration. OPTION
The following option is available: -e local-codeset Specify the application's local codeset. If the option is not specified, runidn guesses the codeset from the current locale. See the ``NOTE'' section for more details about local codeset. IMPLEMENTATION
runidn is a small shell script that sets up an environment variable called ``LD_PRELOAD'', so that an application dynamically links a shared library ``libidnkitres'' before any other shared libraries. The library ``libidnkitres'' provides a special version of resolver functions which implement features for handling internationalized domain names. runidn replaces the following functions with the special version: gethostbyname gethostbyname2 gethostbyaddr gethostbyname_r gethostbyname2_r gethostbyaddr_r getipnodebyname getipnodebyaddr freehostent getaddrinfo freeaddrinfo getnameinfo By overriding them in the standard libraries with the special version provided by ``libidnkitres'', runidn enables applications to use internationalized domain names. o These API functions accept non-ASCII domain names encoded in the local codeset that the application is using. Also the result from these APIs may contain non-ASCII domain names. o The normalization and codeset conversion between application's local codeset and the codeset used in DNS protocol data are handled automatically, so users/applications need not worry about them. Properties of internationalized DNS (such as the normalization or the codeset used on DNS protocol data) can be configured with the idnkit's configuration file (idn.conf). See idn.conf(5) for details. NOTE
Unless -e option is specified, runidn tries to guess the application's local codeset from the application's current locale. However, some- times it cannot guess the codeset correctly, for example if the application does not set the locale appropriately by calling `setlocale()'. In that case, you can explicitly specify the local codeset by setting an environment variable ``IDN_LOCAL_CODESET''. See the section ``LOCAL CODESET'' in idn.conf(5) for details. The idea of using ``LD_PRELOAD'' to replace some functions in the standard library was taken from ``runsocks'' script distributed as part of SOCKS5 reference implementation. BUGS
There are many cases where runidn does not work. Your system must support ``LD_PRELOAD'' mechanism in the first place. Due to security reasons, ``LD_PRELOAD'' mechanism is disabled for setuid programs in any sane systems. So runidn does not work for setuid programs such as ping or rsh. If your application uses a function other than the ones runidn supports for name resolution, you lose. SEE ALSO
idn.conf(5), runsocks(1) April 6, 2001 RUNIDN(1)
All times are GMT -4. The time now is 09:15 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy