LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 03-15-2006, 12:51 AM   #1
gauri
Member
 
Registered: Dec 2005
Posts: 31

Rep: Reputation: 15
shell script


Hi All,

I am having one file say ABC where i a defining all the variable like as follows:

name1=gauri
name2=sandeep
name3=mishra

Now i am using one shell script say xyz.sh where i am using ABC file as :

export ABC

$DEBUG "ABC: load_section [globals]"

function load_section
{
typeset section

${HAVE_BINIFILE:-true} || return
[[ -n "$ABC" ]] || oops "load_section: ABC is empty string"
[[ -f "$ABC" ]] || oops "load_section: File not found: $ABC"

section="${1:-$SCRIPT}"
...
....
...
}
 
Old 03-15-2006, 01:19 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
did you feel like actually asking a question about this then?
 
Old 03-15-2006, 02:03 AM   #3
gauri
Member
 
Registered: Dec 2005
Posts: 31

Original Poster
Rep: Reputation: 15
Ohh I am sorry i forgot to ask quetion.

Acually i hve two quetion here..

1. Export ABC what does it mean, i know teh meaning of exporting a variable but not the file.

2. what is teh meaning of DEBUG here.

Thanks & Regards
Gauri
 
Old 03-15-2006, 08:33 AM   #4
dracae
Member
 
Registered: Feb 2006
Location: Oklahoma
Distribution: Debian Sid and Etch
Posts: 423

Rep: Reputation: 30
It looks like you are export the filename for you script.
$DEBUG in this case could be "echo"
 
Old 03-15-2006, 11:51 PM   #5
gauri
Member
 
Registered: Dec 2005
Posts: 31

Original Poster
Rep: Reputation: 15
Thanks a lot.Yes you are right.

regards
Gauri
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Shell script inside shell script treotan Linux - General 4 02-19-2009 06:34 AM
Shell Scripting: Getting a pid and killing it via a shell script topcat Programming 15 10-28-2007 02:14 AM
Alias or shell script to confirm 'exit' commands from a shell rose_bud4201 Programming 2 03-08-2006 02:34 PM
shell script problem, want to use shell script auto update IP~! singying304 Programming 4 11-29-2005 05:32 PM
[SHELL SCRIPT] Write at the right of the shell window Creak Linux - General 2 04-02-2004 03:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 08:02 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration