12-04-2009
Thanks, guys
Cheers, guys.
quirkasarus: Great minds, and all that: that's exactly what I ended up doing (and then scrapped it - see below).
binlib: You've cracked it! SYMTAB holds the variable names (amongst much else). Just what I was looking for:-)
Many thanks to both of you for looking into this.
Last edited by John Mac; 12-04-2009 at 06:20 AM..
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I need to get files names passed to a script. Here number of files passed may vary
like MyScript.ksh file1 file2 file3..... so on
I am writting script somthing like this
set -A Files
while (i<=$#)
do
File=$i
let i=i+1
done
Is this correct way doing this. Is there any other way.... (5 Replies)
Discussion started by: unishiva
5 Replies
2. UNIX for Advanced & Expert Users
hi,
which Unix/C function can i use to retrieve all group names with a particular group id?
The following C code prints out the group id number of a particular group name:
------------------------------------------------------------------------
#include <stdio.h>
#include <grp.h>
int... (3 Replies)
Discussion started by: Andrewkl
3 Replies
3. Shell Programming and Scripting
Currently have this:
set current=192.168.0.5
set servicehost = `echo $current | awk -F. '{print $4}'`
echo $numberoffields
5
..but would like to reduce # of variables and eliminate echo to have something like this:
set servicehost = `awk -v s="$current" -F. 'BEGIN{print $2}'`But... (3 Replies)
Discussion started by: Mid Ocean
3 Replies
4. Shell Programming and Scripting
Hi all,
Iam writing a perl script to create many files with variables in their name.
i am able to do it, if iam using only one variable. But with two variables the file
names are NOT getting generated in the way i want.
plz help me out.
1. open(SHW,">divw_unsigned_50_50_$k.reset") or die... (4 Replies)
Discussion started by: twistedpair
4 Replies
5. Shell Programming and Scripting
I wrote a very simple script to understand how to call user-defined functions from within awk after reading this post.
function my_func_local {
echo "In func $1"
}
export -f my_func_local
echo $1 | awk -F"/" '{for (k=1;k<=NF;k++) {
if ($k == "a" ) {
system("my_local_func $k")
}
else{... (19 Replies)
Discussion started by: sreyan32
19 Replies
6. Shell Programming and Scripting
I have a file that has 2 fields called b_file:
11977 DAR.V3.20150209.1.CSV
3295 DAR.V3.20150209.1.CSV
1721 DAR.V2.20150210.1.CSV
I need to search a sftplog using the field 1, but want to maintain the relationship between field 1 and 2. I am passing field 1 as a parameter in a bash loop.
... (14 Replies)
Discussion started by: smenago
14 Replies
7. Shell Programming and Scripting
Hi Forum.
I have the following test.txt file and need to extract certain rows based on "starting position", "length of string" and "string to search for":
1a2b3d
2a3c4d
.....
My script accepts 3 parameters: (starting col pos, length to search for, string to search for) and would like to... (4 Replies)
Discussion started by: pchang
4 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I need to pass the multiple values of src1 to another variable. I managed to print it but not sure how to assign it to a variable in a loop.
src1=01,02,03
echo $src1|awk 'BEGIN {FS=","} {for(i=1;i<=NF;i++) print $i}'
I need to pass the value as
src2=01
src2=02
src2=03
Thanks... (4 Replies)
Discussion started by: shash
4 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I have been trying to retrieve the names of files present in a directory one by one but the names of files are getting overlapped on one another.
I tried the below command.
ls -1 > filename
please help me in getting the file names line by line without overlapping. I am using korn... (6 Replies)
Discussion started by: Pradhikshan
6 Replies
10. Shell Programming and Scripting
Hi All,
I have a script which intends to create as many variables at runtime, as the number of parameters passed to it. The script needs to save these parameter values in the variables created and print them
abc.sh
----------
export Numbr_Parms=$#
export a=1
while
do
export... (3 Replies)
Discussion started by: dev.devil.1983
3 Replies
LEARN ABOUT DEBIAN
shishi_tgs_process
shishi_tgs_process(3) shishi shishi_tgs_process(3)
NAME
shishi_tgs_process - API function
SYNOPSIS
#include <shishi.h>
int shishi_tgs_process(Shishi * handle, Shishi_asn1 tgsreq, Shishi_asn1 tgsrep, Shishi_asn1 authenticator, Shishi_asn1 oldenckdcreppart,
Shishi_asn1 * enckdcreppart);
ARGUMENTS
Shishi * handle
shishi handle as allocated by shishi_init().
Shishi_asn1 tgsreq
input variable that holds the sent KDC-REQ.
Shishi_asn1 tgsrep
input variable that holds the received KDC-REP.
Shishi_asn1 authenticator
input variable with Authenticator from AP-REQ in KDC-REQ.
Shishi_asn1 oldenckdcreppart
input variable with EncKDCRepPart used in request.
Shishi_asn1 * enckdcreppart
output variable that holds new EncKDCRepPart.
DESCRIPTION
Process a TGS client exchange and output decrypted EncKDCRepPart which holds details for the new ticket received. This function simply
derives the encryption key from the ticket used to construct the TGS request and calls shishi_kdc_process(), which see.
RETURN VALUE
Returns SHISHI_OK iff the TGS client exchange was successful.
REPORTING BUGS
Report bugs to <bug-shishi@gnu.org>.
COPYRIGHT
Copyright (C) 2002-2010 Simon Josefsson.
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright
notice and this notice are preserved.
SEE ALSO
The full documentation for shishi is maintained as a Texinfo manual. If the info and shishi programs are properly installed at your site,
the command
info shishi
should give you access to the complete manual.
shishi 1.0.1 shishi_tgs_process(3)