04-15-2011
not homework exactly
it was challenge to me
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have got an application through which an user will submit an address like "c:\tuser\abc".
This application calls a script and passes the address to the scripts positional parameter say $1.
So $1 should contain "c:\tuser\abc", but when $1 is echoed the "\t" and "\a" are interpreted to... (4 Replies)
Discussion started by: puspendu
4 Replies
2. UNIX for Dummies Questions & Answers
#!/usr/bin/ksh
ValUniqueNo=0
export ValUniqueNo
FnGenerateUniqueNo()
{
(( ValUniqueNo = $ValUniqueNo + 1 ))
echo $ValUniqueNo
export ValUniqueNo=$ValUniqueNo
}
echo k1=`FnGenerateUniqueNo`
echo k2=`FnGenerateUniqueNo`
kindly consider the above script.
it is required that when... (1 Reply)
Discussion started by: keshav_rk
1 Replies
3. Shell Programming and Scripting
Hi,
I have a log file containg records in sequence
<CRMSUB:MSIN=2200380,BSNBC=TELEPHON-7553&TS21-7716553&TS22-7716553,NDC=70,MSCAT=ORDINSUB,SUBRES=ONAOFPLM,ACCSUB=BSS,NUMTYP=SINGLE;
<ENTROPRSERV:MSIN=226380,OPRSERV=OCSI-PPSMOC-ACT-DACT&TCSI-PPSMTC-ACT-DACT&UCSI-USSD;... (17 Replies)
Discussion started by: helplineinc
17 Replies
4. Shell Programming and Scripting
Hi, all:
Newbie questions:
For example, if I have 6 files, respectively named as:
How to "ls" all files in sequence of two ways?
1) The first way is according to the sequence of the natural number.
Say, the same sequence as shown as they are given.
2) The second way is default... (2 Replies)
Discussion started by: jiapei100
2 Replies
5. Shell Programming and Scripting
*
Expiry DATE:
*
Address1:
Address2:
Address3:
Address4:
Address5:
*
PO_ref_number: aadad
HolderId_1:
HolderId_2:
HolderId_3:
HolderId_4:
*
adad: 00000
ada: 00000
adad: RANDOM
adad: RANDOM
****************************** (4 Replies)
Discussion started by: arunshankar.c
4 Replies
6. Shell Programming and Scripting
Hi all,
I have a file like this
ID 3BP5L_HUMAN Reviewed; 393 AA.
AC Q7L8J4; Q96FI5; Q9BQH8; Q9C0E3;
DT 05-FEB-2008, integrated into UniProtKB/Swiss-Prot.
DT 05-JUL-2004, sequence version 1.
DT 05-SEP-2012, entry version 71.
FT COILED 59 140 ... (1 Reply)
Discussion started by: manigrover
1 Replies
7. Red Hat
If I run rm -rf * command under one parent directory.
/data > rm -rf *
Is there anyway to know which files will be deleted first ?
Start using code tags please, ty. (2 Replies)
Discussion started by: sameermohite
2 Replies
8. Shell Programming and Scripting
I need awk script to generate part number sequencing based on data in multiple columns like below
Input File
---------
Col A|Col B|Col C|
1|a|x|
2|b|y|
|c|z|
| |m|
| |n|
And out put should be like
1ax
1ay
1az
1am
1an
1bx
1by (6 Replies)
Discussion started by: aramacha
6 Replies
9. Shell Programming and Scripting
i want to extract specific region of interest from big file. i have only start position, end position and seq id, see my query is:
I have file1 is this
>GL3482.1
GAACTTGAGATCCGGGGA
GCAGTGGATCTCCACCAG
CGGCCAGAACTGGTGCAC
CTCCAGGCCAGCCTCGTC
CTGCGTGTC
>GL3550.1... (14 Replies)
Discussion started by: harpreetmanku04
14 Replies
10. BSD
I am setting this thread to this bsd forum, though it may fit into bash. But as using bsd and the terminal, I would like to generate a random sequence of alphanumerical digits, such as I use to do so on linux by typing just
mcookiethis one gives me a pretty random password, but it does not on bsd... (0 Replies)
Discussion started by: 1in10
0 Replies
LEARN ABOUT OPENSOLARIS
sasl_chalprompt_t
sasl_chalprompt_t(3SASL) Simple Authentication Security Layer Library Functions sasl_chalprompt_t(3SASL)
NAME
sasl_chalprompt_t - prompt for input in response to a challenge
SYNOPSIS
cc [ flag ... ] file ... -lsasl [ library ... ]
#include <sasl/sasl.h>
int sasl_chalprompt_t(void *context, int id, const char *challenge,
const char *prompt, const char *defresult, const char **result,
unsigned *len);
DESCRIPTION
Use the sasl_chalprompt_t() callback interface to prompt for input in response to a server challenge.
PARAMETERS
context The context from the callback record.
id The callback id. id can have a value of SASL_CB_ECHOPROMPT or SASL_CB_NOECHOPROMPT
challenge The server's challenge.
prompt A prompt for the user.
defresult The default result. The value of defresult can be NULL
result The user's response. result is a null-terminated string.
len The length of the user's response.
RETURN VALUES
Like other SASL callback functions, sasl_chalprompt_t() returns an integer that corresponds to a SASL error code. See <sasl.h> for a com-
plete list of SASL error codes.
ERRORS
SASL_OK The call to sasl_chalprompt_t() was successful.
See sasl_errors(3SASL) for information on SASL error codes.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWlibsasl |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO
sasl_errors(3SASL), sasl_server_new(3SASL), attributes(5)
SunOS 5.11 14 Oct 2003 sasl_chalprompt_t(3SASL)