The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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
Linux > Export (exp) command ora_umair Linux 2 10-27-2008 10:36 AM
ExporT Command Not found networking UNIX for Dummies Questions & Answers 1 06-20-2008 03:22 PM
Export command prakash.kudreka UNIX for Advanced & Expert Users 3 11-20-2007 08:37 AM
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 11:05 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-30-2008
bsrivatsav bsrivatsav is offline
Registered User
  
 

Join Date: Oct 2008
Posts: 1
Linux Export command

Hi All,

Can anybody tell me . What does it mean by following statement

export $$

Generally export command sets up the environment variable and if any
child process is created it passes on to it

Thanks & Regards
Srivatsav
  #2 (permalink)  
Old 10-30-2008
sysgate's Avatar
sysgate sysgate is offline Forum Advisor  
Unix based
  
 

Join Date: Nov 2006
Location: Bulgaria
Posts: 1,318
"echo $$" will display the pid of bash shell, e.g. :
Code:
[sysgate@host:~] $ echo $$
24786
[sysgate@host:~] $ ps -ef | grep 24786
1000     24786 17028  0 16:20 pts/2    00:00:00 /bin/bash
  #3 (permalink)  
Old 10-30-2008
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,717
What sysgate is telling you - it will not work to export the current pid. Children will have the $$ defined during creation (exec) of the new process, so it will be written over, anyway. Plus that command generates a syntax error in bash.
Closed Thread

Bookmarks

« NTP errors | conn »
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 02:43 AM.


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