04-22-2009
One standard way is to have a "parameter file" in a fixed location.
When you code starts it reads the file, and assigns envrionment variables based on the file contents.
When you want to change a parm, edit the file, then send a signal like SIGHUP SIGUSR1 or whatever is not being blocked for some other purpose. In the code add a trap statement to reread the parm file on receipt of the signal.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I'm trying to install a solaris 9 patch cluster and when I try to use & to run in background it won't allow me to enter in my sudo password so it fails the install and sudo auth. Does Solaris not have screen like linux? If & will work what am I doing wrong?
sudo ./install_cluster -q &
is... (3 Replies)
Discussion started by: kingdbag
3 Replies
2. Solaris
I ran the Oracle 9i export command from a terminal to export out a big table using "exp andrew/password file=andrew.dmp log=andrew.log"
From the terminal I can see that the export is running as there is some output from the oracle export job. The export job is not complete yet. When i go check... (4 Replies)
Discussion started by: hippo2020
4 Replies
3. Shell Programming and Scripting
I have run one shell script in background that contains a endless while loop.
I am not able to know the status of that job .
Please provide any command to know this. I have already used "ps -aef" , "jobs" to know it , but it didn't work. I am sure the process is running as it is generating a file... (8 Replies)
Discussion started by: sumanta
8 Replies
4. UNIX for Advanced & Expert Users
I've tried this a long time ago and was successful but could not remember how i did it. Tried ctrl+Z and then used bg %
could not figure what i did after to keep it no hangup -
not sure if used nohup -p pid, can u plz help me out if this can be done.
Any help will be appreciated. (12 Replies)
Discussion started by: pharos467
12 Replies
5. Shell Programming and Scripting
Hi All,
I have a script which calls a child script with a parameter to be run in the background
. childscript.ksh $a &
Can any one suggest me how do i export a variable from the child script to parent script?
Note that the child script is in background
If the child script is in... (3 Replies)
Discussion started by: aixjadoo
3 Replies
6. Shell Programming and Scripting
Hi ,
I want to see all the background process that are running in unix box machine...please guide me is there any specific command for that..since I am executing some scripts at background..!!:confused: (1 Reply)
Discussion started by: nks342
1 Replies
7. Shell Programming and Scripting
Hi, i was looking for an answer for some trouble im having runing a script in the cron, thing is, that when i run it manually it works just fine. But when cron runs it, it just doenst work. I saw a reply on a similar subject, suggesting that the . .profile worked for you, but im kind of... (9 Replies)
Discussion started by: blacksteel1988
9 Replies
8. UNIX for Dummies Questions & Answers
I have a question.
I will be running a background process using nohup and & command at end. I want to send output to a file say myprocess.out.
So will this command work?
nohup myprocess.ksh > myprocess.out &
Thanks in advance guys !!!
:) (3 Replies)
Discussion started by: vx04
3 Replies
9. Shell Programming and Scripting
Hi Team,
i am executing 3 scripts in background from 1 script and i want to send a message once the script gets completed.these scripts usually takes 1 hr to complete.
My sample script is below,
Vi abc.sh
sh /opt/data/Split_1.sh &
sh /opt/data/Split_2.sh &
sh /opt/data/Split_3.sh &
... (3 Replies)
Discussion started by: raju2016
3 Replies
10. UNIX for Beginners Questions & Answers
Hi,
I have this simple c program that creates duplicate process with fork():
#include <sys/types.h>
main()
{
if (fork() == 0)
while(1);
else
while(1);
}
I tried running it in the background
gcc -o test first.c
test &
And I got this list of running process: (4 Replies)
Discussion started by: uniran
4 Replies
LEARN ABOUT REDHAT
xmtransfersetparameters
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)