The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Unix Arithmatic operation issue , datatype issue thambi Shell Programming and Scripting 23 02-19-2008 03:19 AM
How to export jisha BSD 4 01-21-2008 03:06 AM
export??? Justinkase Shell Programming and Scripting 1 12-03-2007 02:32 PM
Export path ???? gkrishnag UNIX for Dummies Questions & Answers 3 09-19-2006 03:37 AM
using export command sveera Shell Programming and Scripting 4 04-01-2005 08:05 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-19-2008
Registered User
 

Join Date: Dec 2006
Location: hyderabad
Posts: 102
export issue

hi,
I have a password file called mypwd.bash in /home/oracle/practice directory as follows.
mypwd.bash

mypwd=oracle
export mypwd

i called the above file in the following script as follows.
passwdtest.bash

/home/oracle/practice/mypwd.bash
echo $mypwd

but nothing is getting printed.

any idea pls.

cheers
RRK
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 02-19-2008
agn agn is offline
Registered User
 

Join Date: Feb 2008
Posts: 76
Try calling it like this
Code:
. /home/oracle/practice/mypwd.bash
echo $mypwd
Reply With Quote
  #3 (permalink)  
Old 02-19-2008
Registered User
 

Join Date: Dec 2006
Location: hyderabad
Posts: 102
Hi,
Thank u.

cheers
RRK
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 04:24 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0