Sponsored Content
Top Forums Shell Programming and Scripting What is the maximum number of parameter we can pass to a shell script function? Post 302412570 by alokjyotibal on Tuesday 13th of April 2010 02:36:14 AM
Old 04-13-2010
not working

not working
my script accept only 9 para meter Smilie
 

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
ppud(1M)																  ppud(1M)

NAME
ppud - Pay per use daemon SYNOPSIS
DESCRIPTION
is a daemon that provides system configuration and core usage information to a utility meter system for billing purposes. This daemon runs on Pay per use systems and meters core utilization and system configuration information. The daemon sends this information to a utility meter as an XML file. When a report is sent to a utility meter, it is also written to the file /var/ppu/PPUReport.xml. This report is best viewed using a web browser that understands XML. If the connection to the utility meter fails, the daemon caches the report data until the connection is restored. The daemon re-spawns itself if killed. The following entry is added to /etc/inittab in order to have start and re-spawn itself: The daemon is automatically started when a system boots if a utility meter has been specified via the command (see ppuconfig(1M)). The daemon does not need to be restarted when the meter configuration is changed via the command. The daemon reports errors via syslog. To unconfigure Pay per use, execute: Warning: if this is a Pay per use system and the daemon is not running, usage reports will not be sent to HP and usage may be assumed to be 100%. The daemon performs periodic operations based on the time of day. The daemon is spawned by and gets its timezone specification from the /etc/default/tz file. By default the timezone specified in /etc/default/tz is EST5EDT. You can specify which timezone the daemon uses to interpret its current time by modifying the /etc/default/tz file. Refer to environ(5)) for details of the format. A restart of the daemon is required before the new timezone value takes effect (i.e. kill the /usr/lbin/ppud process). For more information see the Pay per use User's Guide located at /usr/share/doc/PayPerUseUserGuide.pdf AUTHORS
ppud was developed by HP. FILES
/etc/default/tz File contains the timezone value used by . The format for the file is the same as the the environment variable format without the prefix . (See environ(5) for details of the TZ format). /var/ppu/cache/ Directory contains the report data that is cached if the connection to the utility meter fails. SEE ALSO
ppuconfig(1M), ppu(5) ppud(1M)
All times are GMT -4. The time now is 11:19 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy