exporting variabels from env file


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting exporting variabels from env file
# 1  
Old 11-30-2007
exporting variabels from env file

I am running a unix script and calling an env script with in that. but the variables i am exporting in env are not being used by the present script. can any body let me know why? The env file is in the same directory and when i run in devug mode its able to show all the variable values also.

Here is a snippet:

./lin_env

if [ ! -d $C_ARCHIVE_DIR/$YYMM ]; then
mv $C_SRCFILE_DIR/lin_$linBR\_$CODE\_$CYCLES.$YYMM.* $C_ARCHIVE_DIR/$YYMM/
fi

ERROR: /0711 no such directory
# 2  
Old 11-30-2007
Exporting variables

. ./lin_env
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Exporting Values of Variables to Another File

Hello, I'm very new to Linux, and I have a question, I'm hoping you could help me with. :) I have created a file called subject, contains this code: #!/bin/bash read -p "Student Name: " NAME read -p "Student ID: " ID read -p "Address: " ADDRESS I'm to create another file called... (7 Replies)
Discussion started by: iwant2learn
7 Replies

2. Web Development

Deny from env=env-variable Does not work

(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

3. Shell Programming and Scripting

Exporting log file into Excel

Hi, I am using HP-UX. I have an output log file which gives me server statistics. I want to export the contents of the file(last 100 lines) using tail command and then save it into an excel file in my local machine. The server statistics should be collected every 3 hrs. So, i wanted the idea... (1 Reply)
Discussion started by: harshaganapathy
1 Replies

4. Shell Programming and Scripting

Exporting CLASSPATH in manifest service file

Hi, I need the a help can please any one give me a suggestion for Exporting the CLASS PATH in service manifest file for Solaris 10 Here i have pasted the code <?xml version="1.0"?> <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1"> <!-- Copyright 2007 Sun... (4 Replies)
Discussion started by: Shreedhar Naik
4 Replies

5. Shell Programming and Scripting

Exporting variable from config file

Hi, I am exporting the environment variable from config file, but when I echo the variable it does not display any value. Here is the snippet of the code #!/bin/sh export ENVIRONMENT_ROOT_DIRECTORY="/cb/$ENVIRONMENT" echo $ENVIRONMENT_ROOT_DIRECTORY ${JAVA_HOME}/bin/java... (2 Replies)
Discussion started by: bhavnabakshi
2 Replies

6. Shell Programming and Scripting

Adding command line env in cron env

Hello friends, i run two scripts manually & they work. i run them in cron & they don work. how to match the two env's 1.command line env 2.cron env i would like cron to use command line env. Thanks & Regards Abhijeet (1 Reply)
Discussion started by: abhijeetkul
1 Replies

7. Shell Programming and Scripting

Exporting text file data to csv

Could any one help me in basic shell script to export text file data to csv. I need to export only particular data from text file to csv column. I am a newbie to UNIX could anyone help me with sample script code (3 Replies)
Discussion started by: l_jayakumar
3 Replies

8. Solaris

exporting a dmp file (oracle)from unix

i want to export a database (full schema) so that I can import the database to a windows 2000 server. The database is sitting on a unix-sun solaris box ver 8.. What are the commands... I am a bit rusty at unix at the moment! Cheers E (4 Replies)
Discussion started by: etravels
4 Replies

9. Programming

Global Variabels

How if it's possible, can I make global vars that I can use in more than 1 file. I tryed with doing it in a header file but without success... Thanks in advance.:rolleyes: (4 Replies)
Discussion started by: Esaia
4 Replies
Login or Register to Ask a Question