Sponsored Content
Top Forums Shell Programming and Scripting pass runtime parm to at -f shell script Post 302142612 by island360 on Sunday 28th of October 2007 12:59:01 PM
Old 10-28-2007
I've managed to find a way to accomplish the substitution for the at command.... Not sure if it is the best solution but the following comand in my calling script works fine...
sed s/XXDB/$DB_NAME/g process_server.sh | at -m now + 1 minute

where $DB_NAME is set from the parm passed to the calling script ($1) and
XXDB is the tnsname parm in the connect string in process_server.sh

Thanks for your consideration...
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Passing the value of Out parm in SP to UNIX Shell Script

I have a simple procedure which accepts two input parms and returns and output count: CREATE OR REPLACE Procedure GET1 ( IN_FOLDER IN VARCHAR2, IN_SUBJECT_AREA IN VARCHAR2, OUT_CNT IN OUT VARCHAR2 ) AS BEGIN ... (2 Replies)
Discussion started by: Hangman2
2 Replies

2. UNIX for Dummies Questions & Answers

allocate memory for a shell script at runtime--urgent critical help!!!

How to allocate memory for a shell script on aix box at the time of execution i.e at runtime Are there any commands for AIX in specific Thanks in Advance (3 Replies)
Discussion started by: aixjadoo
3 Replies

3. Shell Programming and Scripting

passing runtime arguments to a shell script...

hi I am new to shell programming.....my question is while running one of my shell program it stops in between to accept input from the user and proceeds furthur after giving input....I want to know whether I can set this input through some files so that the shell acript reads the input from the... (10 Replies)
Discussion started by: santy
10 Replies

4. Shell Programming and Scripting

shell script for finding average runtime of other script

so I've made a shell script that downloads 6 files in succession from a given url, then deletes them. Now I want to time the script, and the average time it uses by running it ~100 times. My problem is tho, how do I store the time it takes for each run through of the script? I know time writes to... (3 Replies)
Discussion started by: navlelo
3 Replies

5. Homework & Coursework Questions

Shell Script average runtime

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: Make a bash script that calculates average runtime for the first two scripts you made. The average should be... (17 Replies)
Discussion started by: navlelo
17 Replies

6. Shell Programming and Scripting

Unable to pass shell script variable to awk command in same shell script

I have a shell script (.sh) and I want to pass a parameter value to the awk command but I am getting exception, please assist. 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... (2 Replies)
Discussion started by: Ashunayak
2 Replies

7. UNIX for Dummies Questions & Answers

How to write Config shell script to pass variables in master shell script?

Dear Unix gurus, We have a config shell script file which has 30 variables which needs to be passed to master unix shell script that invokes oracle database sessions. So those 30 variables need to go through the database sessions (They are inputs) via a shell script. one of the variable name... (1 Reply)
Discussion started by: dba1981
1 Replies

8. Shell Programming and Scripting

How to write config shell script to pass variables in master shell script?

Dear Unix gurus, We have a config shell script file which has 30 variables which needs to be passed to master unix shell script that invokes oracle database sessions. So those 30 variables need to go through the database sessions (They are inputs) via a shell script. one of the variable name... (1 Reply)
Discussion started by: dba1981
1 Replies

9. Shell Programming and Scripting

Shell script to create runtime variables based on the number of parameters passed in the script

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

10. UNIX for Beginners Questions & Answers

How to pass values to a script on runtime on nohup mode?

Hi All, I have a script which takes three inputs while executing, I need to run that script on nohup mode, How to do so. Kindly help me with the syntax. (1 Reply)
Discussion started by: Sikkandar
1 Replies
XmTransferSetParameters(library call)									     XmTransferSetParameters(library call)

NAME
XmTransferSetParameters -- A toolkit function that establishes parameters to be passed by the next call to XmTransferValue SYNOPSIS
#include <Xm/Transfer.h> void XmTransferSetParameters( XtPointer transfer_id, XtPointer parm, int parm_fmt, unsigned long parm_length, Atom parm_type); DESCRIPTION
XmTransferSetParameters establishes a parameter definition. Your application calls XmTransferSetParameters just before calling XmTransfer- Value, and only if XmTransferValue needs to transfer a value containing a parameter. transfer_id Specifies a unique indentifier for the data transfer operation. The value must be the same as the value of the transfer_id mem- ber of the XmDestinationCallbackStruct passed to the XmNdestinationCallback procedure. parm Specifies parameters to be passed to the conversion routine (and the XmNconvertCallback procedures, if any) of the widget that owns the selection. The type and length of parameters are target-specific. If the target takes no parameters, the value is NULL. parm_fmt Specifies whether the data in parm should be viewed as a list of 8-bit, 16-bit, or 32-bit quantities. Possible values are 0 (when parm is NULL), 8, 16, and 32. parm_length Specifies the number of elements of data in parm, where each element has the number of bits specified by parm_fmt. When parm is NULL, the value is 0. parm_type Specifies the type of parm. RELATED
XmTransferSendRequest(3), XmTransferStartRequest(3), and XmTransferValue(3). XmTransferSetParameters(library call)
All times are GMT -4. The time now is 07:11 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy