Sponsored Content
Top Forums Shell Programming and Scripting [bash] command line substitution with environmental variables Post 302401471 by ASGR on Saturday 6th of March 2010 08:37:43 AM
Old 03-06-2010
Thanks for all the replies.

I've realised that what I'm trying to do is to define
the flag variables before ./configure is executed on
the same line which I've been told is the most recent
method.

Essentially, it's the same process as typing it on the
command line, but all the variables and commands
are held in variables.

On-the-fly or dynamic seems to be appropriate words
to describe what I'm trying to do.

A.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Environmental Variables - where stored ?

Hi all ! Yesterday I defined an environmental variable PATH, but today when I restarted machine, I could not see that it was stored any place. Is there any file where I could save the settings ? I have quite a few env.variables defined, so I need a smarter way to define. regards D (5 Replies)
Discussion started by: DGoubine
5 Replies

2. UNIX for Dummies Questions & Answers

Unix passing environmental Variables

In my script when I change an env variable in the parent shell it is only changed for that session - it there away to change it permanently using a script so that when I use rlogin (create a child session) that the env variable is set correctly? Basically what I am trying to do is to pass a... (7 Replies)
Discussion started by: belfastbelle
7 Replies

3. AIX

Best way to setup my own environmental variables ?

I am writing a few korn scripts to be used by all our operators on several 4.1/4.2 AIX servers. I want to create environmental variables that once set, can be read/modified by my scripts (ex: specific folders, file names, conventions, general values, ...). I thought this would be better then... (4 Replies)
Discussion started by: Browser_ice
4 Replies

4. Shell Programming and Scripting

Oracle environmental variables in shells script

Hi, Getting below error on executing the shell script which initiates sqlplus How to set oracle enviornment variables in the shell script ? With Regards (3 Replies)
Discussion started by: milink
3 Replies

5. Shell Programming and Scripting

bash, command line substitution

I have one script calling another with a set of strings that includes white space. Script A calls Script B with these input strings: one two "th ree" Script B pulls apart the arguments correctly: arg0 = one, arg1 = two, arg2 = "th ree" if I call it from within Script A like so:... (10 Replies)
Discussion started by: skippyV
10 Replies

6. Shell Programming and Scripting

Help with manipulating environmental variables in UNIX

I am wondering if there is away to increment a date in c shell. What I need to do is basic, but I lack the knowledge. I have they following environmental variable in my job scripts setenv YYYY `date '+%Y'` I then set YYYY to be part of my output dataset name: setenv dd_OUTPUTP... (1 Reply)
Discussion started by: jclanc8
1 Replies

7. OS X (Apple)

Don't understand the practical difference between command aliases and environmental variables

Hey, I'm recently learning Unix from the video course by Kevin Scoglund. I'm stuck at the moment where he goes into Environmenat variables. I have some issues with understanding what's the essential difference between EV and command aliases: for instance, by writing the command alias ll='ls... (3 Replies)
Discussion started by: scrutinizerix
3 Replies

8. Shell Programming and Scripting

How to Force command substitution evaluation in bash?

OK, I'm striving to abide by all the rules this time. Here is a fragment of my windows10/cygwin64/bash script: export BUPLOG=$(BackupRecords --log "$src") robocopy $(BackupRecords -mrbd "$src" --path "$src") $(BackupRecords --appSwitches "$src") "$src" "$dst" $(BackupRecords --fileSwitches... (0 Replies)
Discussion started by: siegfried
0 Replies

9. Shell Programming and Scripting

How to Force command substitution evaluation in bash?

OK, I'm striving to abide by all the rules this time. Here is a fragment of my windows10/cygwin64/bash script: export BUPLOG=$(BackupRecords --log "$src") robocopy $(BackupRecords -mrbd "$src" --path "$src") $(BackupRecords --appSwitches "$src") "$src" "$dst" $(BackupRecords --fileSwitches... (15 Replies)
Discussion started by: siegfried
15 Replies

10. Shell Programming and Scripting

<< Environmental Variables are not set when script completes >>

Hi Team, I have a wrapper script which i have pasted below, it internally calls one python script to generate Environmental in a file called /home/oracle/myenv.sh, when i execute this script via wrapper script, its not reflecting in my current session, still showing old env variables. any... (2 Replies)
Discussion started by: kamauv234
2 Replies
AUDIOCTL(1)						    BSD General Commands Manual 					       AUDIOCTL(1)

NAME
audioctl -- control audio device SYNOPSIS
audioctl [-d device] [-n] -a audioctl [-d device] [-n] name ... audioctl [-d device] [-n] -w name=value ... DESCRIPTION
The audioctl command displays or sets various audio system driver variables. If a list of variables is present on the command line, then audioctl prints the current value of those variables for the specified device. If the -a flag is specified, all variables for the device are printed. If the -w flag is specified audioctl attempts to set the specified variables to the given values. The -d flag can be used to give an alternative audio control device, the default is /dev/audioctl0. The -n flag suppresses printing of the variable name. ENVIRONMENT
AUDIOCTLDEVICE the audio control device to use. FILES
/dev/audio0 audio I/O device (resets on open) /dev/audioctl0 audio control device /dev/sound0 audio I/O device (does not reset on open) EXAMPLES
To set the playing sampling rate to 11025, you can use audioctl -w play.sample_rate=11025 To set all of the play parameters for CD-quality audio, you can use audioctl -w play=44100,2,16,slinear_le Note that many of the variables that can be inspected and changed with audioctl are reset when /dev/audio0 is opened. This can be circum- vented by using /dev/sound0 instead. COMPATIBILITY
The old -f flag is still supported. This support will be removed eventually. SEE ALSO
audioplay(1), audiorecord(1), mixerctl(1), audio(4), sysctl(8) HISTORY
The audioctl command first appeared in NetBSD 1.3. BSD
January 27, 2002 BSD
All times are GMT -4. The time now is 06:16 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy