Sponsored Content
Full Discussion: ksh script - arrays
Top Forums Shell Programming and Scripting ksh script - arrays Post 75963 by sidamin810 on Thursday 23rd of June 2005 01:40:52 PM
Old 06-23-2005
Perderabo : Thank you very much..! Smilie That is what I was looking for. Once again really appreciate your help.

Sid
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

KSH and arrays

hello all, I browsed the forum (briefly) and I am having issues with a script I writing. I need to check a directory and see if there are files there, if so process all of them. The issues I am having is that when I create the array of files names using set -A filenames "$(ls -1... (1 Reply)
Discussion started by: whited05
1 Replies

2. Shell Programming and Scripting

Automatic Arrays in ksh

Given a line of text in ksh: string1 string2 string3 .....stringn is there a way of automatically assigning each string to an array element? Or just different variables would do. Thanks, Jon (1 Reply)
Discussion started by: Jonny2Vests
1 Replies

3. Shell Programming and Scripting

import var and function from ksh script to another ksh script

Ih all, i have multiples ksh scripts for crontab's unix jobs they all have same variables declarations and some similar functions i would have a only single script file to declare my variables, like: var1= "aaa" var2= "bbb" var3= "ccc" ... function ab { ...} function bc { ... }... (2 Replies)
Discussion started by: wolfhurt
2 Replies

4. Shell Programming and Scripting

List of arrays in ksh?

Hi all, In a loop, i am creating an array of integer and adding it to another array that hold arrays // psuedo code pttrnArray=$type$data // This is array of integers. pttrnArrays=${pttrnArray} // This is supposed to be array of arrays. But when i print pttrnArrays, i get only the... (1 Reply)
Discussion started by: jakSun8
1 Replies

5. Shell Programming and Scripting

Export Arrays in ksh

Hello everybody! Why I can export arrays in ksh? I trie this for exemplo: In parent script array=a array=b array=c export array When I see the variable array in child script there are only first index. For exemplo in child script +echo ${array} a (3 Replies)
Discussion started by: ricardo.ludwig
3 Replies

6. UNIX for Dummies Questions & Answers

Arrays in nawk and ksh

I'm not confident at all on how arrays work. I want to know how to set arrays in ksh and in nawk (is there a difference??) if someone can show me some examples of both that will be great. Tried to look up on the net but was confusing me more. Any help would be appreciated. (2 Replies)
Discussion started by: Pablo_beezo
2 Replies

7. Shell Programming and Scripting

KSH: Reading a file line by line into multiple arrays

Hi - I have a file that contains data in this format:- #comment value1 value2 value3 #comment value4 value5 value6 value7 #comment value8 value9 I need to read value1, value2 and value3 into one array, value4 value5 value6 and value7 into another array and value8 and value9 into a 3rd... (2 Replies)
Discussion started by: sniper57
2 Replies

8. Shell Programming and Scripting

KSH script to run other ksh scripts and output it to a file and/or email

Hi I am new to this Scripting process and would like to know How can i write a ksh script that will call other ksh scripts and write the output to a file and/or email. For example ------- Script ABC ------- a.ksh b.ksh c.ksh I need to call all three scripts execute them and... (2 Replies)
Discussion started by: pacifican
2 Replies

9. Shell Programming and Scripting

Multidimentional arrays in KSH

Hi, I am using KSH shell and need to define a multi dimensional array in which i need to store and retrive data. Please provide your valuable in puts. Eg: asbjkasd 1234 asdhnas 1254 i need to store the above values and use them as input to another command. Note each line is a pair. Thanks... (8 Replies)
Discussion started by: hraj1984
8 Replies

10. Shell Programming and Scripting

ksh arrays

Hi, I have a ksh script in which I need to fill an array with a list of filenames. It currently works like this: set -A array \ val1 \ val2 \ val3However, I was wondering why it's not possible to do something like this to make it easier to parse values to the array: set -A array... (3 Replies)
Discussion started by: Subbeh
3 Replies
rapi_getfd(3)						     Library Functions Manual						     rapi_getfd(3)

NAME
rapi_getfd - Get the file descriptor for the Resource ReSerVation Protocol (RSVP) daemon's socket LIBRARY
RAPI Library (librsvp.so, librsvp.a) SYNOPSIS
#include <rapi.h> int rapi_getfd( rapi_sid_t Sid); PARAMETERS
Specifies the session handle that was returned by a successful call to the rapi_session routine. DESCRIPTION
The rapi_getfd() routine obtains the file descriptor associated with the UNIX socket connected to the RSVP daemon, rsvpd. An application typically calls this routine after a call to the rapi_session() routine has completed successfully and before a call to the rapi_release routine. When a socket read event is signaled on this file descriptor, the application should call the rapi_dispatch() routine. A call to the rapi_getfd() routine for different RAPI sessions might return the same file descriptor. RETURN VALUES
Upon successful completion, the rapi_getfd() routine returns the file descriptor. If the session handle is illegal or undefined, the rou- tine returns a value of -1. RELATED INFORMATION
Functions: rapi_dispatch(3), rapi_event_rtn_t(3), rapi_release(3), rapi_reserve(3), rapi_sender(3), rapi_session(3), rapi_strerror(3), rapi_version(3). Network: RSVP(7). delim off rapi_getfd(3)
All times are GMT -4. The time now is 08:08 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy