Go Back   The UNIX and Linux Forums > Special Forums > UNIX Desktop for Dummies Questions & Answers
google site



UNIX Desktop for Dummies Questions & Answers Discuss UNIX and Linux user interfaces like GNOME, KDE, CDE, and Open Office here. All UNIX and Linux Newbies Welcome !!

Closed Thread
English Japanese Spanish French German Portuguese Italian Powered by Powered by Google
 
Search this Thread
  #1  
Old 12-24-2009
Registered User
 

Join Date: Apr 2008
Posts: 46
Thanks: 3
Thanked 0 Times in 0 Posts
Understanding the code

hello all,

May i know what is this "DEBUG_ME $DEBUG_CMD main" doing in the below code. I am confused with alias also "alias DEBUG_ME='#'". Thanks for your help.


Code:
set -x
alias DEBUG_ME='#'
if [ -f "/product/apps/informatica/v7/pc/ExtProc/debug.ksh" ] ; then
    . /product/apps/informatica/v7/pc/ExtProc/debug.ksh "$1"
fi

# Declaring the Variables used
FEED="$1"
UNAME=`uname -n`

DEBUG_ME $DEBUG_CMD main

INFORMATICA="/product/apps/informatica/v7"
EXTPROC="/product/apps/informatica/v7/pc/ExtProc"
TGT_DIR="/product/apps/informatica/v7/pc/TgtFiles"
COMPLETE_FILE_SOURCE="/ADP_Impact_TT_Output"

Sponsored Links
  #2  
Old 12-27-2009
TonyFullerMalv's Avatar
Registered User
 

Join Date: Sep 2008
Location: Malvern, Worcs. U.K.
Posts: 1,021
Thanks: 0
Thanked 1 Time in 1 Post
With DEBUG_ME aliased to a "#" it comments out any code in lines that it precedes, so as the code stands "$DUBUG_CMD main" will not be run.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Understanding FTP connection code Ariean UNIX for Dummies Questions & Answers 2 12-28-2009 05:24 PM
Problems understanding example code Makaer UNIX for Dummies Questions & Answers 6 07-29-2009 11:07 AM
Problems understanding example code Makaer Shell Programming and Scripting 1 07-29-2009 05:49 AM
Need help in understanding thisperl code. Raheel Hassan Shell Programming and Scripting 1 03-19-2009 07:01 AM
Little Trouble Understanding some code... NycUnxer UNIX for Dummies Questions & Answers 2 10-31-2007 08:20 AM



All times are GMT -4. The time now is 11:23 PM.