Sponsored Content
Top Forums Shell Programming and Scripting What is the maximum number of parameter we can pass to a shell script function? Post 302412377 by anbu23 on Monday 12th of April 2010 11:05:19 AM
Old 04-12-2010
There is no limit
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to pass parameter from sqlplus(procedure completed) to your shell script

if then # mail -s "Import failed file does not exist" sanjay.jaiswal@xyz.com echo "FILE does not exist" exit 1 fi echo "FILE EXIST" size=-1 set $(du /export/home/oracle/nas/scott21.dmp.gz) while do echo "Inside the loop" size=$1 set $(du... (1 Reply)
Discussion started by: sanora600
1 Replies

2. Shell Programming and Scripting

pass parameter to function

HI all I have a code like ############################################## minyear() { curryear=$1 echo $curryear } ##Main Program ## minyear exit ####### when i execute "sh scriptname 2005" output should be like 2005 but the output is blank. I guess i need to pass parameter to... (3 Replies)
Discussion started by: vasuarjula
3 Replies

3. Shell Programming and Scripting

How to pass a variable as a parameter to DB2 database from shell script

I need to pass a variable as a parameter from shell script into a DB2 database. var=bhuk_1123_Q_11/22/09 select * from tbl1 where serial_id='$var'; I have tried executing it using db2 -tvf scriptname Somebody please help me out with this. It is throwing an error. Please tell me how... (2 Replies)
Discussion started by: ss3944
2 Replies

4. Shell Programming and Scripting

How to pass parameter to User defined function in shell script?

Hello, Can anyone guide me tin passing parameters into user defined function of shell script (KSH). Here is my code, InsertRecord() { DB_TBL=$(sqlplus $USERID/$PASSWORD@$DATABASE << EOF set head off set feed off set serveroutput on INSERT INTO TBL1 ( OLD_VAL, NEW_VAL, ... (7 Replies)
Discussion started by: Poonamol
7 Replies

5. AIX

Maximum number of processes kernel parameter

Hi, Is there a maximum number of processes kernel parameter in AIX. Solaris has max_nprocs, HP-UX has nproc, I can only find max user process (maxuproc) for AIX. Thanks, Wilson. (3 Replies)
Discussion started by: wilsonee
3 Replies

6. Shell Programming and Scripting

Pass parameter to nawk from shell script

I need to parse log files using nawk, but I'm not able to pass script input argument (date) to nawk, for example: ------------ #!/bin/ksh read date nawk -F, '{if($1==date) print $4" "$5}' ------------- Is there a way to pass an argument to nawk from shell script. Many thanks... (8 Replies)
Discussion started by: samer.odeh
8 Replies

7. Post Here to Contact Site Administrators and Moderators

Unable to pass shell script parameter value to awk command in side the same script

Variable I have in my shell script diff=$1$2.diff id=$2 new=new_$diff echo "My id is $1" echo "I want to sync for user account $id" ##awk command I am using is as below cat $diff | awk -F'~' ''$2 == "$id"' {print $0}' > $new I could see value of $id is not passing to the awk... (0 Replies)
Discussion started by: Ashunayak
0 Replies

8. Shell Programming and Scripting

How to pass the parameter in xml file in UNIX shell script?

Hi, I have an XML file like the following... <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ONDEMAND_JOB VERSION="5.1" LOCALE="en_US"> <IMPORT_JOBSET TC_CONNECTION_NAME="default" ENVIRONMENT="PRD" USERNAME="Administrator" PASSWORD="AdminPassword" CALENDAR="Main Monthly Calendar"... (2 Replies)
Discussion started by: Debalina Roy
2 Replies

9. Shell Programming and Scripting

How to pass the parameter in xml file in UNIX shell script?

Hi, I have an XML file like the following... <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ONDEMAND_JOB VERSION="5.1" LOCALE="en_US"> <IMPORT_JOBSET TC_CONNECTION_NAME="default" ENVIRONMENT="PRD" USERNAME="Administrator" PASSWORD="AdminPassword" CALENDAR="Main Monthly Calendar"... (3 Replies)
Discussion started by: Debalina Roy
3 Replies

10. Homework & Coursework Questions

How to Dynamically Pass Parameter to plsql Function & Capture its Output Value in a Shell Variable?

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: 2. Relevant commands, code, scripts, algorithms: #! /bin/ksh v="ORG_ID" ... (2 Replies)
Discussion started by: sujitdas2104
2 Replies
resource.h(3HEAD)						      Headers							 resource.h(3HEAD)

NAME
resource.h, resource - definitions for resource operations SYNOPSIS
#include <sys/resource.h> DESCRIPTION
The <sys/resource.h> header defines the symbolic constants listed below as possible values of the which argument of getpriority() and set- priority(). See getpriority(3C). PRIO_PROCESS identifies the who argument as a process ID PRIO_PGRP identifies the who argument as a process group ID PRIO_USER identifies the who argument as a user ID The following type is defined through typedef: rlim_t unsigned integer type used for limit values The following symbolic constants are defined: RLIM_INFINITY a value of rlim_t indicating no limit RLIM_SAVED_MAX a value of type rlim_t indicating an unrepresentable saved hard limit RLIM_SAVED_CUR a value of type rlim_t indicating an unrepresentable saved soft limit The symbolic constants listed below are defined as possible values of the who parameter of getrusage(). See getrusage(3C). RUSAGE_SELF returns information about the current process RUSAGE_CHILDREN returns information about children of the current process The <sys/resource.h> header defines the rlimit structure, which includes the following members: rlim_t rlim_cur /* the current (soft) limit */ rlim_t rlim_max /* the hard limit */ The <sys/resource.h> header defines the rusage structure, which includes the following members: struct timeval ru_utime /* user time used */ struct timeval ru_stime /* system time used */ The timeval structure is defined as described in <sys/time.h>. The symbolic constants listed below are defined as possible values for the resource argument of getrlimit() and setrlimit(). See getr- limit(2). RLIMIT_CORE limit on size of core dump file RLIMIT_CPU limit on CPU time per process RLIMIT_DATA limit on data segment size RLIMIT_FSIZE limit on file size RLIMIT_NOFILE limit on number of open files RLIMIT_STACK limit on stack size RLIMIT_AS limit on address space size The id_t type is defined through typedef as described in <sys/types.h>. See types.h(3HEAD). Inclusion of the <sys/resource.h> header can also make visible all symbols from <sys/time.h>. See time.h(3HEAD). ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Standard | +-----------------------------+-----------------------------+ SEE ALSO
getrlimit(2), getpriority(3C), time.h(3HEAD), types.h(3HEAD), attributes(5), standards(5) SunOS 5.11 10 Sep 2004 resource.h(3HEAD)
All times are GMT -4. The time now is 07:18 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy