02-04-2009
Quote:
Originally Posted by
cfajohnson
See Parameter Expansion in your shell man page.
Ok, I will check Parameter Expansion later, Can you give a quick solution to get the value of ${INSTANCE} only, because your script seems ran the cmd "svcadm disable ${INSTANCE}"
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I want to set a bash env variable which has @ in its name, for example, @YOGESH@
may i know how do i do this? (4 Replies)
Discussion started by: Yogesh Sawant
4 Replies
2. UNIX for Dummies Questions & Answers
Could you please tell me, which process / file is responsible for the setting of PWD env variable in Solaris
Thanks (1 Reply)
Discussion started by: chaandana
1 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I have a doubt on Environment variable.
I want to know where and when the envirnment variables are defined?
Thanks & Regards,
Siba (1 Reply)
Discussion started by: siba.s.nayak
1 Replies
4. Shell Programming and Scripting
I have a shell script I want to run that will set environment variables based on the value of an input variable submitted when the shell script is called. For example:
$ mgenv.sh prod
This would set environment variables for prod
$ mgenv.sh test
This would set environment variables... (1 Reply)
Discussion started by: brtaylor73
1 Replies
5. Shell Programming and Scripting
Hello,
I want to cange env variable on SunOS.
I tried:
export GONGA=$GONGA:/users/BANK1/basic/queues/SARON_SPACE1
it changed it only localy for my session.
when i opened a new session (telnet etc') the old value exist.
How can I change it to effact all sessions.
Thanks. (2 Replies)
Discussion started by: LiorAmitai
2 Replies
6. Solaris
Hi,
Am installing SAP on Solaris 10. How to set env variables permanently?
Reg (0 Replies)
Discussion started by: daggupati453
0 Replies
7. Shell Programming and Scripting
greetings,
i have a sh script that calls a python script. the sh script sets an env variable BIN:
export BIN=bin64i need to get that BIN variable's value and use it within this python script. anyone know how to do this? thanx in advance. (5 Replies)
Discussion started by: crimso
5 Replies
8. Web Development
(Above from Apache docs).
On my system, using:
SetEnvIf User-Agent Mozilla IsBad=1
Order allow,deny
Allow from all
Deny from env=IsBad ...I see that environment variable is set (using phpinfo()) but the page is still served. No errors in the Apache logs. (1 Reply)
Discussion started by: gnurob
1 Replies
9. Shell Programming and Scripting
Hello
I have found some piece of code to verify and then run shell script with root permission from normal user.
see : http://blog.mecworks.com/articles/2006/02/23/bash-scripting-tip-running-a-script-as-root
I have wrote two scripts using this tips.
- one to copy file from server to local... (6 Replies)
Discussion started by: jcdole
6 Replies
10. Shell Programming and Scripting
Hi All,
I have a requirement where I have a config file, which contains 2 coulmn.values of first column are environmnet variable, whose value is defined in an environment file.
In my script I need to read the config file, and get the value of the config file variable from env file.
I... (2 Replies)
Discussion started by: alok2082
2 Replies
started(7) Miscellaneous Information Manual started(7)
NAME
started - event signalling that a job is running
SYNOPSIS
started JOB=JOB INSTANCE=INSTANCE [ENV]...
DESCRIPTION
The started event is generated by the Upstart init(8) daemon when an instance of a job has finished starting and is now running. The JOB
environment variable contains the job name, and the INSTANCE environment variable contains the instance name which will be empty for sin-
gle-instance jobs.
init(8) emits this event as an informational signal, services and tasks started or stopped by this event will do so in parallel with other
activity. It is typically combined with the stopping(7) event by services declaring a dependency.
Job configuration files may use the export stanza to export environment variables from their own environment into the started event. See
init(5) for more details.
EXAMPLE
A service that wishes to depend on another service might use:
start on started apache
stop on stopping apache
A task that must be run after another task or service has been started might use:
start on started postgresql
SEE ALSO
starting(7) stopping(7) stopped(7) init(5)
Upstart 2009-07-09 started(7)