Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Export command giving Variable Name vs the Value set for the Variable Post 302070130 by Perderabo on Friday 31st of March 2006 04:43:58 PM
Old 03-31-2006
Try:
eval export SOURCEDIR=\$${ARCHIVE_Interface_Name}SourceDir
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

set variable command

Hi all, I want to set a variable in ksh shell (prompt) and echo the value. $ set x=5 $echo $x But it is returning null. Can any one please help. Thanks in advance (1 Reply)
Discussion started by: ammu
1 Replies

2. Shell Programming and Scripting

need sed command to read a path and set to variable

I have a variable called PATH that contains a path example: /Users/rtipton/Desktop/testusers/test I need a sed command to set a variable called USER to the last directory name in that path PATH="/Users/rtipton/Desktop/testusers/test" and from that PATH i need USER to = test I know sed... (4 Replies)
Discussion started by: tret
4 Replies

3. Shell Programming and Scripting

How to set mutliple words variable from command line

I'm writing a script (C shell) to search for a pattern in file. For example scriptname pattern file1 file2 filenN I use for loop to loop through arguments argv, and it does the job if all arguments are supplied. However if only one argument is supplied (in that case pattern ) it should ask to... (5 Replies)
Discussion started by: patryk44
5 Replies

4. Shell Programming and Scripting

Set/Export Env Vars from with Shell Script With Input Variable

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

set variable to command output

I'm hoping you guys can help me out here. I've been trying different methods to try and get what IW as hoping would be a fairly simple script but has turned into a pain. Bit of background - I am writing a script to check values in certain failes to ensure they are corerct. I'm runnign this on... (2 Replies)
Discussion started by: stuc
2 Replies

6. Shell Programming and Scripting

Export command variable exporting problem

I have a txt file from which i am assiging a value to a variable using the code in script1 script1.sh export f=$(sed -n "/Freq *=/ s/.*= *//p" ${R_path}/output.txt) echo "$f" --------> this works in script2 ( which executes the script1) eval ./script1.sh if && ; then echo... (1 Reply)
Discussion started by: shashi792
1 Replies

7. HP-UX

What is the use of command set -- and set - variable?

Hi, I am using hp unix i want to know the use of the following commands set -- set - variable thanks (4 Replies)
Discussion started by: gomathi
4 Replies

8. Shell Programming and Scripting

Set shell variable from command

shell script has a command inside back quotes in method update_TABLE I need to store the count of number of Rows updated and store it in shell script variable "num" num = 0; Update_TABLE Update_TABLE() { `echo " set verify off feedback off echo off pagesize 0 head off... (4 Replies)
Discussion started by: finder255
4 Replies

9. Shell Programming and Scripting

Bash script set command to a variable

Hi, Will following set up work in bash script? I've got errors if assigning following binary command to a variable. But on the other hand, COMMAND="ls" works. Any explanation please? How can I assign binary command to a variable COMMAND then I can just call ${COMMAND}? COMMAND="rsync"... (3 Replies)
Discussion started by: hce
3 Replies

10. Shell Programming and Scripting

Export command - variable

Hello, Please see the script found in my computer below. (Ubuntu 14.04) #!/bin/sh export APP_DIR="/home/appname" monitorscript="$APP_DIR""/monitor.sh" ps cax | grep monitor.sh > /dev/null if ; then echo "monitor.sh is running" else "$monitorscript" fi My question is regarding EXPORT... (3 Replies)
Discussion started by: baris35
3 Replies
DEBAUX-BUILD(1p)					User Contributed Perl Documentation					  DEBAUX-BUILD(1p)

NAME
debaux-build - Debian package building script SYNOPSIS
debaux-build [OPTIONS] DEBDIR [BUILDDIR SOURCEDIR] debaux-build --cpan Net::Google VERSION
0.1.10 DESCRIPTION
debaux-build is a helper script for building Debian packages. Besides options it takes up to three parameters: DEBDIR, BUILDDIR, SOURCEDIR. DEBDIR is a required parameter. If DEBDIR doesn't exist, debaux-build tries to download the package with apt-get source. debaux-build applies all patches found in the DEBDIR subdirectory patches. If no source tarball exist and the DEBDIR subdirectory sources exist, all files in this directory get packed and used as source tarball. OPTIONS
"--apt" Forces apt-get source mode. "--archive" Specifies file name of source archive. "--build-options" Options passed to "dpkg-buildpackage". "--cpan" Download Perl module from CPAN and create necessary Debian packaging files. You need to have the dh-make Debian package installed in order to utilize this option. "--empty" Empty package (no source code archive). Intended to use for task packages. "--epoch" Specifies epoch for CPAN builds. "--extra-sources" Specifies a directory below DEBDIR which is copied to the build directory. "-i, --install, --install=PACKAGE" Install build package. "-l, --lintian" Run lintian on the source file and the generated packages. "--make-archive" Intended to use for native Debian packages. Specify the commands to build the archive here. "--release" The generated packages are targeted for official Debian packages. "--rpm, --alien" Convert generated packages into RPM packages by using "alien". "-s, --sign" Sign source package and changelog. "--skip-patches" Don't apply patches from the patches directory and sources.diff file. "--source-tree" Instructs "debaux-build" to use the specified directory instead of an archive file. "--stop-before-build" Stop script before calling "dpkg-buildpackage". CONFIGURATION FILE
"debaux-build" looks for the configuration file ".debauxrc" in the home directory and in the current directory and recognizes the following directives: "debauxdir" PACKAGE Used as "DEBDIR" for package if it is an existing directory. Considered before the <debiandir> directive. "debiandir" If the directory "DEBDIR" on the commandline doesn't exist, "debaux-build" appends "DEBDIR" to the specified directory and tries again. "sourcedir" Directory with the source archives. Can be overridden by the commandline parameter "SOURCEDIR". "source-tree" PACKAGE Directory with the source code for PACKAGE. SEE ALSO
dpkg(8), dpkg-source(1), apt-get(8) AUTHOR
Stefan Hornburg (Racke) <racke@linuxia.de>. LICENSE
debaux-build comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute and modify it under the terms of the GNU General Public License. COPYRIGHT
Copyright 2000,2001,2002,2003,2004,2005,2006,2007 Stefan Hornburg (Racke) <racke@linuxia.de>. perl v5.8.8 2007-07-15 DEBAUX-BUILD(1p)
All times are GMT -4. The time now is 01:12 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy