LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 02-13-2013, 04:20 AM   #1
charithsrng
LQ Newbie
 
Registered: Jan 2013
Posts: 19

Rep: Reputation: Disabled
run .env file


#!/bin/bash
apps_down(){
su applclone -c"
. ./ebiz1/QAL/apps/apps_st/appl/QALNEW_ct-eagorasvr1.env
echo $ADMIN_SCRIPTS_HOME
whoami
. $ADMIN_SCRIPTS_HOME/adstpall.sh apps/apps > /home/applclone/error_log.txt"
}
apps_down

in above script setting the env variable is not working.But if i put below command . ./ebiz1/QAL/apps/apps_st/appl/QALNEW_ct-eagorasvr1.env
command in the shell its working.please help
 
Old 02-13-2013, 09:51 AM   #2
Habitual
Senior Member
 
Registered: Jan 2011
Distribution: Undecided
Posts: 3,183
Blog Entries: 4

Rep: Reputation: 762Reputation: 762Reputation: 762Reputation: 762Reputation: 762Reputation: 762Reputation: 762
try:
Code:
source /aboslute/path/to/ebiz1/QAL/apps/apps_st/appl/QALNEW_ct-eagorasvr1.env
[code][/code] tags?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set up DISPLY env to run graphical application? 2007fld Suse/Novell 6 04-01-2011 12:34 PM
can i run linux on lg env?? golgo Linux - Mobile 1 10-29-2009 05:05 AM
How to run sql programs in Unix Env? anandv_1234 Linux - Newbie 3 02-12-2008 11:28 AM
chroot: cannot run command `/tools/bin/env': No such file or directory Basel Linux From Scratch 5 06-30-2006 03:00 AM
Switch to another user, get his env and run a command 'under his name' ganninu Linux - General 2 05-25-2004 02:26 PM


All times are GMT -5. The time now is 03:37 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration