Does anybody have an explanation for the following:
The following scripts runs fine on IRIX64 6.5 but has bugs on Solaris 8.
#! /bin/sh
echo run only on an SGI machine
echo type in linenumber
read j
echo value
read value
awk -f rmspass2 level=$value $j'step1.mlf'
When the script is... (5 Replies)
Hi,
Is there any way to pass variable to a sed script.For awk we have -v option.like that do we have any way to pass variable to a sed script from a awk script or from normal script?
Thanx,
sounder (1 Reply)
HI all,
Very new to shell programming and just wanted some help on how to solve the following problem.
I have a small shell script which searches a given file and extracts some string parameters. I want to now be able to call this script from another shell script and somehow pass the parameters... (11 Replies)
Hi All,
I need to pass 2 variables name 'vamskt' and 'vamsi'.
Here is my question:
delete from gpi.usergroup where usg_user_id in ('vamskt');
delete from gpi.userroles where uro_user_id in ('vamskt');
delete from gpi.user where usr_id in ('vamskt');
insert into gpi.user... (3 Replies)
Hello all. I've been trying to install NWCHEM in parallel on a new cluster, and have been able to get it to work on single processors by ignoring any MPI environment variables.
This is, of course, pretty worthless. So I'm starting over and trying to get thing set up right for the MPI. The key... (6 Replies)
HI ,I am a new in Bash and ,I dont know how to pass a second parameter to this fuction,if the name of the passed argument is num works fine,but if I try to pass secondNum,dont recognized it
thanks
function check()
{
if(($(echo ${#num}) == 0 ))
then
echo No arguments passed.Try... (6 Replies)
So I'm writing a script to generate pairwise scores for how similar two strings are, and while I've been able to get it to work on a single script, I've been unable to iterate it.
So suppose I have a file thus
1234567890
1234567890
1234567899
first I need to assign two lines, by their... (3 Replies)
I have below data:
DAY1=10202013
I am trying below but not getting the desired output:
COUNT=1
DATE=DAY$COUNT
echo "Date is $DATE"
However output I am getting is:
Date is DAY1
I wanted the output as:
Date is 10202013
I tried following as well:
DAY1=10202013
COUNT=1... (3 Replies)
Trying to do so
echo "111:222:333" |awk -F: '{system("export TESTO=" $2)}'But it doesn't work (2 Replies)
Discussion started by: urello
2 Replies
LEARN ABOUT HPUX
gss_display_status
gss_display_status(3) Library Functions Manual gss_display_status(3)NAME
gss_display_status() - provide an application with the textual representation of a GSSAPI status code that can be displayed to a user or
used for logging
SYNOPSIS DESCRIPTION
The routine provides the context initiator with a textual representation of a status code so that the application can display the message
to a user or log the message. Because some status values can indicate more than one error, the routine enables the calling application to
process status codes with multiple messages.
The message_context parameter indicates which error message the application should extract from the status_value parameter. The first time
an application calls the routine, it should initialize the message_context parameter to 0 (zero) and return the first message. If there
are additional messages to read, the routine returns a nonzero value. The application can call repeatedly to generate a single text string
for each call.
Input Parameters
status_value Specifies the status value to convert.
status_type Specifies one of the following status types:
Major status - GSS status code
Minor status - mechanism status code eg. Kerberos
mech_type Specifies the underlying security mechanism. Supply to obtain the system default.
Input/Output
message_context Indicates whether the status code has multiple messages to read. The first time an application calls the routine,
you initialize the parameter to 0 (zero). The routine returns the first message. If there are more messages, the
routine sets the parameter to a nonzero value. The application calls the routine repeatedly to get the next message,
until the message_context parameter is zero again.
Output
status_string Returns the status value as a text message.
minor_status Returns a status code from the security mechanism.
STATUS CODES
The following status codes can be returned:
The routine was completed successfully.
The translation requires a mechanism that is unsupported
or unavailable.
Indicates either the status value was not recognized or
the status type was something other than or
The routine failed. Check the
minor_status for details.
AUTHOR
was developed by Sun Microsystems, Inc.
SEE ALSO
The manpages for DCE-GSSAPI are included with the DCE-CoreTools product. To see those manpages add to
gss_display_status(3)