The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
export equivalent command in PERL ammu Shell Programming and Scripting 1 09-17-2007 04:46 PM
typeset and export command difference systemsb UNIX for Dummies Questions & Answers 0 05-16-2006 12:36 PM
UNIX export command - memory space Nomaad UNIX for Advanced & Expert Users 2 04-10-2006 09:49 PM
export command radhika03 UNIX for Dummies Questions & Answers 2 12-16-2005 09:25 AM
using export command sveera Shell Programming and Scripting 4 04-01-2005 12:05 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-20-2007
prakash.kudreka prakash.kudreka is offline
Registered User
  
 

Join Date: Nov 2007
Posts: 7
Export command

Hi all,

Want to know what does export command do??
What is its functionality?

And on a shell prompt

$at=1
$ echo $at
1

The variable above is it available to other script???
  #2 (permalink)  
Old 11-20-2007
edcrosbys edcrosbys is offline
Read Only
  
 

Join Date: Jul 2007
Posts: 15
It takes a local variable and makes it global.

Try running a script that calls a function or another script. If the secondary script or function sets a LOCAL variable, it is gone when that function of script returns to the parent. If that variable is exported, it is a GLOBAL variable that will remain.
  #3 (permalink)  
Old 11-20-2007
SanjayLinux SanjayLinux is offline
Registered User
  
 

Join Date: Sep 2007
Posts: 58
Wink

1:-Want to know what does export command do??
What is its functionality?


The Best way to approach .. Go for the man page of "export" and "env" command.

2:- $at=1
$ echo $at
1
The variable above is it available to other script???


NO, It will be only for that terminal/shell. But if you want use that variable into your another scripts. You must have export it.

Thanks
Sanjay
  #4 (permalink)  
Old 11-20-2007
Yogesh Sawant's Avatar
Yogesh Sawant Yogesh Sawant is offline Forum Staff  
Part Time Moderator and Full Time Dad
  
 

Join Date: Sep 2006
Location: Rossem, Tazenda
Posts: 1,086
this might give you more insight
Closed Thread

Bookmarks

Tags
export

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On




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


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0