03-14-2009
Quote:
Originally Posted by
Rahulpict
[B][COLOR=Blue]sort -r -k3,3n
- doesn't work either....
rather gives wrong result....
check below....
As I look at the post, I see that you changed the data when you tried my sort suggestion. The new data that you used resulted in a a bunch of zeros. But help me out. Which one of those identical zeros do you think is out of order?
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
i have two rules in my pf.conf file, "pass in all" and "pass out all"
i was having issues with getting pf working to begin with, so i went with
starting from nothing and working on up.
i have an ultrasparc ultra1 200e, with an added 4-port fast ethernet sbus
card, running "3.4 GENERIC#85... (4 Replies)
Discussion started by: xyyz
4 Replies
2. Shell Programming and Scripting
Hi Everyone ,
I am facing a strange problem
i have made the follwing script to watch a appending log file (abc.log) but its not moving after the line tail -f ,
any suggestions
=====================================
#!/bin/bash
while true
do
tail -f abc.log | grep "exceptions"
echo hi... (12 Replies)
Discussion started by: xander
12 Replies
3. Shell Programming and Scripting
Hi All,
I am not much strong in shell scripting...
I am using sed command in my script to find and replace a string.......
This is how script looks :
#############
#!/usr/bin/ksh
CONFIG_FILE=iom_test.txt
FIND=`echo "NIS_FTP_SERVER1=123.456.iom.com"`
REPLACE=`echo... (2 Replies)
Discussion started by: askumarece
2 Replies
4. Shell Programming and Scripting
Hello everybody,
I've gotten a script together that is designed to open a .bin file and read it 32 bits at a time and then add it to the checksum. However, the only issue that I have is that it will not print anything at the end. Can anyone help me? Also, is the & symbol used for restraining... (2 Replies)
Discussion started by: TeamUSA
2 Replies
5. Shell Programming and Scripting
Hi, this is my script:
#!/bin/bash
trabajo=$1
numero=`jobs | grep -n $trabajo | cut -d':' -f1`
echo $trabajo
echo $numero
kill %$numero
wait
For some reason,
numero=`jobs | grep -n $trabajo | cut -d':' -f1`
that line wont save in numero the number I am looking for BUT if I write it... (7 Replies)
Discussion started by: lamachejo
7 Replies
6. Shell Programming and Scripting
If I enter (simplified):
find . -printf "%p\n"
then all files in the output are prepended by a "." like
./local/share/test23.log
How can achieve that
a.) the leading "./" is omitted
and/or
b.) the full path to the current directory is inserted (enclosed by brackets and a blank)... (1 Reply)
Discussion started by: pstein
1 Replies
7. Shell Programming and Scripting
Platform: RHEL 5.4
In the below text file I have strings like following.
$ cat /tmp/mytextfile.txt
DISK1
DISK10
DISK101
DISK102
DISK103
DISK104
DISK105
DISK106
DISK107
DISK108
DISK109
DISK110
DISK111
DISK112
DISK113
DISK114 (8 Replies)
Discussion started by: kraljic
8 Replies
8. Shell Programming and Scripting
I am facing this weird issue where the script is working fine from the command line but when I am executing it from cron though it is working fine but the "if" loop is processing else part though I know that the if part of the logic is true and ideally the loop should execute the if portion.
... (3 Replies)
Discussion started by: sk2code
3 Replies
9. UNIX for Beginners Questions & Answers
#!/bin/bash -i
SAVEIFS=$IFS
IFS=$"\n\b"
picc=$*
if ; then
echo $TDATE
if ; then
touch dummy
touch -t "tdate" dummy
touch -r "dummy" "$picc"
else
echo -e "No mod date value to apply. If there is one in your shell,\ninvoke \eStarted asking advice on this (on Linuxquestions.org).... (9 Replies)
Discussion started by: iamwrong
9 Replies
10. UNIX for Beginners Questions & Answers
"SQLPLUS -S " is not working in one environment where same code is working in another
getting below error
===================================
SQL*Plus: Release 11.2.0.3.0 Production
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Use SQL*Plus to execute SQL, PL/SQL and SQL*Plus... (1 Reply)
Discussion started by: yogendra.barode
1 Replies
ncp(7D) ncp(7D)
NAME
ncp - Niagara crypto provider device driver
The ncp device driver is a multi-threaded, loadable hardware driver supporting hardware assisted acceleration of RSA and DSA cryptographic
operations. This support is built into the Niagara CMT processor.
The ncp driver requires the presence of the Solaris Cryptographic Framework to enable applications and kernel clients to access the pro-
vided services.
CONFIGURATION
You configure the ncp driver by defining properties in /platform/sun4v/kernel/drv/ncp.conf which override the default settings. The fol-
lowing property is supported:
nostats Disables the generation of statistics. The nostats property may be used to help prevent traffic analysis, but this may
inhibit support personnel.
NETWORK STATISTICS
Solaris network drivers must implement statistics variables. The ncp driver maintains the following statistics:
mauXqfull Number of times the queue for MAU X was found full when attempting to submit jobs.
mauXupdate_failure Number of submit job failures on MAU X.
mauXsubmit Number of jobs submitted to MAU X since driver load (boot).
rsapublic Total number of jobs submitted to the device for RSA public key operations.
rsaprivate Total number of jobs submitted to the device for RSA private key operations.
dsasign Total number of jobs submitted to the device for DSA signing.
dsaverify Total number of jobs submitted to the device for DSA verification.
Additional statistics may be supplied for Sun support personnel, but are not useful to Solaris users and are not doc- umented in this
manpage.
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Architecture |SPARC |
+-----------------------------+-----------------------------+
|Availability |SUNWcakr.v |
+-----------------------------+-----------------------------+
|Interface Stability |Unstable |
+-----------------------------+-----------------------------+
FILES
/platform/sun4v/kernel/drv/sparcv9/ncp
64-bit ELF kernel driver.
/platform/sun4v/kernel/drv/ncp.conf
Configuration file.
cryptoadm(1M), kstat(1M), prtconf(1M), attributes(5)
Solaris Cryptographic Framework -- Solaris Software Developer Collection
Solaris Security for Developer's Guide -- Solaris Software Developer Collection
14 Mar 2005 ncp(7D)