8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I need a command or mini scripts that can find certain type of images file recursively from the current dir with files of minimum 736 width and resize them by "736 max width, relative height" and replace the source files. I currently have GD installed but can also install Imagemagick if needed, I'm... (5 Replies)
Discussion started by: Frozen77
5 Replies
2. Programming
Can we select the datetime from oracle database in “hhmmssnnnccyymmdd” format ?
please help to solve this..... (2 Replies)
Discussion started by: Sanal
2 Replies
3. Shell Programming and Scripting
Hi guys,
I know that this topic has been discuss numerous times, and I have search the net and this forum for it.
However, non able to address the problem I faced so far.
I am on Solaris Platform and unable to install additional packages like the GNU date and gawk to make use of their... (5 Replies)
Discussion started by: DrivesMeCrazy
5 Replies
4. AIX
Hi,
I want to synchronize time on several AIX servers - I don't want to set very precise time value, but I want all the servers to have same time value.
How do I do that ?
thanks
Vilius (2 Replies)
Discussion started by: vilius
2 Replies
5. Shell Programming and Scripting
I use HP-UX & need help with time.
I use a script to create a date stamp: /bin/date "+%m%d%H%M" to get: 12080826.
I need a way to use the "touch -t" command to create a
file with a timstamp 30 minutes prior to that stamp. (12080756)
Can anyone help? (9 Replies)
Discussion started by: obrien2003
9 Replies
6. UNIX for Advanced & Expert Users
Hi,
I have 4 solaris 9(32-Bit) Sparc machines on the same subnet.
All 4 of them have different times( off by 10-15 mins).
I need to synchronize all 4 of them.
Please advise what I should do to sync them to the proper time, and with each other.
Thanks (3 Replies)
Discussion started by: 0ktalmagik
3 Replies
7. Programming
I am writing a program to display a database to the screen(xterm) and want to allow the window resize signal to increase/decrease the amount data that is displayed. I have a signal handler function for catching the SIGWINCH event and calling a function to reallocate the space for the windows... (0 Replies)
Discussion started by: kwaz
0 Replies
8. UNIX for Dummies Questions & Answers
I know how send a html page through mailx, but how do I show the pictures(gif,jpeg,etc.) in the email? (4 Replies)
Discussion started by: Thomas
4 Replies
rlm_expr(5) FreeRADIUS Module rlm_expr(5)
NAME
rlm_expr - FreeRADIUS Module
DESCRIPTION
The rlm_expr module allows the server to perform limited mathematical calculations. This module is not called directly in any section, it
is invoked through the dynamic expansion of strings.
For example, some NAS boxes send a NAS-Port attribute which is a 32-bit number composed of port, card, and interface, all in different
bytes. To see these attributes split into pieces, you can have an entry in the 'users' file like:
DEFAULT
Vendor-Interface = `%{expr: %{NAS-Port} / (256 * 256)}`,
Vendor-Card = `%{expr: (%{NAS-Port} / 256) %% 256}`,
Vendor-Port = `%{expr: %{NAS-Port} %% 256}`
where the attributes Vendor-Interface, Vendor-Card, and Vendor-Port are attributes created by either you or a vendor-supplied dictionary.
The methematical operators supported by the expression module are:
+ addition
- subtraction
/ division
%% modulo remainder
* multiplication
& boolean AND
| boolean OR
() grouping of sub-expressions
NOTE: The modulo remainder operator is '%%', and not '%'. This is due to the '%' character being used as a special character for dynamic
translation.
NOTE: These operators do NOT have precedence. The parsing of the input string, and the calculation of the answer, is done strictly left to
right. If you wish to order the expressions, you MUST group them into sub-expression, as shown in the previous example.
All of the calculations are performed as unsigned 32-bit integers.
CONFIGURATION
modules {
...
expr {
}
...
}
...
instantiate {
...
expr
...
}
SECTIONS
instantiate
FILES
/etc/raddb/radiusd.conf
SEE ALSO
radiusd(8), radiusd.conf(5)
AUTHOR
Chris Parker, cparker@segv.org
5 February 2004 rlm_expr(5)