Sponsored Content
Top Forums Shell Programming and Scripting My variable cannot be passed through into my path Post 302348029 by cyberfrog on Thursday 27th of August 2009 07:39:06 AM
Old 08-27-2009
okay, these alternatives still work but i am facec with the same problem when trying to do the copy, it seems to find the latest directory or version e.g. v003 but it does not copy the directory to the target directory?

if i hard code v003 in the scrpt instead it works though???
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

variable passed to awk

Anybody know what's wrong with this syntax? awk -v job="$job" 'BEGIN { FS="|"} {print $1,$2," ",$4," ",$3\n,$5,"\n"}' list It's keeping give me this message: awk: syntax error near line 1 awk: bailing out near line 1 It seems awk has problem with my BEGIN command. Any... (8 Replies)
Discussion started by: whatisthis
8 Replies

2. UNIX for Dummies Questions & Answers

variable passed to awk

Does anybody know how to print a variable passed to awk command? awk -F"|" 'BEGIN {print $job,"\n","Question \n"} {print $1,$2$4," ",$3}' "job=$job1" file1 I am trying to pass job the variable job1. the output is blank. ?? (3 Replies)
Discussion started by: whatisthis
3 Replies

3. UNIX for Dummies Questions & Answers

Assigning a Variable all the Parameters passed

Hi, I have a unix script which can accept n number of parameters . I can get the parameter count using the following command and assign it to a variable file_count=$# Is there a similar command through which i can assign a variable all the values that i have passed as a parameter ... (2 Replies)
Discussion started by: samit_9999
2 Replies

4. Shell Programming and Scripting

how to find the path of a file when it is passed as ....filename(parameter) to script

hi unix guru's..................:confused: question is posted in the #3 permalink shown below. (3 Replies)
Discussion started by: yahoo!
3 Replies

5. UNIX for Advanced & Expert Users

Value of variable not getting passed in child script

Hi, I am facing a challenge in fixing an issue in my installation scripts.Here is a situation: There are 3 files which are invoked at a below given order: Installer.ksh----->Installer.xml(Ant script)------->common.ksh I am outputting a message from common.ksh at a terminal, after that trying to... (3 Replies)
Discussion started by: baig_1988
3 Replies

6. Shell Programming and Scripting

[SSH] Accessing remote directory with user-passed path

Hi everybody, Currently, I have a script which access a remote computer via SSH, go to a folder already defined in the code and then executes a program in it, just like that: ssh user@host << EOI cd path ./file EOI It executes fine, but now I want to pass an argument in the command... (2 Replies)
Discussion started by: lgb3
2 Replies

7. Shell Programming and Scripting

In the sh file variable is not being passed on.

I am having difficulties with the fllowing script: !/bin/sh voicemaildir=/var/spool/asterisk/voicemail/$1/$2/INBOX/ echo `date` ':' $voicemaildir >> /var/log/voicemail-notify.log for audiofile in `ls $voicemaildir/*.wav`; do transcriptfile=${audiofile/wav/transcript} ... (4 Replies)
Discussion started by: ghurty
4 Replies

8. Shell Programming and Scripting

Variable passed as argument

I have a script. #!/bin/sh cur_$1_modify_time=Hello echo "cur_$1_modify_time" When I run like sh /root/script1 jj I expect value "Hello" being assigned to variable "cur_jj_modify_time" and output being "Hello" ie echoing $cur_jj_modify_time But the output comes as # sh... (3 Replies)
Discussion started by: anil510
3 Replies

9. Shell Programming and Scripting

Variable not passed to the sed command

Hello, I am writing a script which is not giving the desired result. When I check the content of the 'InputFile_009_0.sh', it shows following with missing Index in this command sed -i "s/L1ITMBLT.root/L1ITMBLT_"".root/g" run_DttfFromCombinedPrimitives_cfg.py of . Any help? ... (13 Replies)
Discussion started by: emily
13 Replies

10. Shell Programming and Scripting

Bash variable not being passed

In the bash below the variable date displays in the echo. However when I use it in the for loop it does not. Basically, the user inputs a date then that date is converted to the desired format of (month-day-year, no leading 0). That input is used in the for loop to return every file that matches... (5 Replies)
Discussion started by: cmccabe
5 Replies
ATF-CONFIG(1)						    BSD General Commands Manual 					     ATF-CONFIG(1)

NAME
atf-config -- queries static configuration information of ATF SYNOPSIS
atf-config [-t] [var1 [.. varN]] atf-config -h DESCRIPTION
atf-config is a utility that queries static configuration information of ATF. Static configuration refers to all those values for settings that were built into the ATF binaries at build time. In the first synopsis form, atf-config will print variable-value pairs for all built-in static variables if no variable names are provided as arguments. If any is provided, it will only print the variable-value pairs for those variables. The output of the utility does not use the '=' symbol to separate the variable name from its corresponding value in an attempt to avoid sourcing the output in shell scripts or Make- files. If you need to do that, the -t flag allows you to query the value of individual variables without any surrounding text. In the second synopsis form, atf-config will print information about all supported options and their purpose. The following options are available: -h Shows a short summary of all available options and their purpose. -t Changes the output of the utility to show the variable values, one per line, without the variable names. Static configuration variables The following list describes all the variables that are part of ATF's static configuration: atf_arch The architecture name detected by ATF. This is derived from atf_machine because it is a subset of it. Given that this name might be misdetected, it is provided to the user as a configuration variable so that he can fix its value tempo- rarily until a real fix is incorporated into mainstream sources. atf_build_cc The C compiler used by the ATF checks that provide build-time tests. atf_build_cflags The C compiler flags used by the ATF checks that provide build-time tests. atf_build_cpp The C/C++ preprocessor used by the ATF checks that provide build-time tests. atf_build_cppflags The C/C++ preprocessor flags used by the ATF checks that provide build-time tests. atf_build_cxx The C++ compiler used by the ATF checks that provide build-time tests. atf_build_cxxflags The C++ compiler flags used by the ATF checks that provide build-time tests. atf_confdir The path to the directory that contains the system-wide configuration files for ATF. atf_includedir The path to the directory that contains the ATF header files. atf_libdir The path to the directory that contains the ATF libraries. atf_libexecdir The path to the directory that contains the auxiliary utilities of ATF, used internally by the public tools. atf_machine The machine type name detected by ATF. This should not be tunable but is provided for symmetry with atf_arch. atf_pkgdatadir The path to the directory that contains the files that form the ATF's shell-scripting library. atf_shell The path to the shell interpreter that will be used by ATF. atf_workdir The path to the temporary directory that the utilities and the test programs will use to store temporary files in. ENVIRONMENT
Every variable that is part of the static configuration can be overridden at run-time by defining an environment variable. This environment variable has the exact same name as the one shown by atf-config except that the name is all composed of uppercase letters. In general, empty values in the environment will be ignored unless otherwise noted below. The recognized environment variables are: ATF_ARCH Overrides the built-in value of atf_arch. ATF_BUILD_CC Overrides the built-in value of atf_build_cc. ATF_BUILD_CFLAGS Overrides the built-in value of atf_build_cflags. Empty values are allowed. ATF_BUILD_CPP Overrides the built-in value of atf_build_cpp. ATF_BUILD_CPPFLAGS Overrides the built-in value of atf_build_cppflags. Empty values are allowed. ATF_BUILD_CXX Overrides the built-in value of atf_build_cxx. ATF_BUILD_CXXFLAGS Overrides the built-in value of atf_build_cxxflags. Empty values are allowed. ATF_CONFDIR Overrides the built-in value of atf_confdir. ATF_INCLUDEDIR Overrides the built-in value of atf_includedir. ATF_LIBDIR Overrides the built-in value of atf_libdir. ATF_LIBEXECDIR Overrides the built-in value of atf_libexecdir. ATF_MACHINE Overrides the built-in value of atf_machine. ATF_PKGDATADIR Overrides the built-in value of atf_pkgdatadir. ATF_SHELL Overrides the built-in value of atf_shell. ATF_WORKDIR Overrides the built-in value of atf_workdir. SEE ALSO
atf(7) BSD
March 14, 2009 BSD
All times are GMT -4. The time now is 08:03 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy