The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
GUI for bash scripts? xenator Shell Programming and Scripting 1 05-26-2009 05:42 AM
global variable not holding its value? patiobarbecue Shell Programming and Scripting 7 12-16-2008 03:38 PM
Nonblocking I/O in bash scripts neked Shell Programming and Scripting 5 10-10-2008 07:54 PM
bash and ksh: variable lost in loop in bash? estienne Shell Programming and Scripting 2 08-25-2008 03:09 PM
passing variable from bash to perl from bash script arsidh Shell Programming and Scripting 10 06-04-2008 01:25 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 03-16-2009
Yakuzan Yakuzan is offline
Registered User
  
 

Join Date: Feb 2009
Posts: 15
[BASH] Holding a variable unto other scripts.

Ex: Script 1 has pID=333. I want to take pID to Script 2 so I can retrive 333.

How can I do this?
  #2 (permalink)  
Old 03-16-2009
ultimatix ultimatix is offline
Registered User
  
 

Join Date: Oct 2008
Location: Mumbai
Posts: 55
Smile

question not clear pls elaborate
  #3 (permalink)  
Old 03-16-2009
fpmurphy's Avatar
fpmurphy fpmurphy is offline Forum Staff  
Moderator
  
 

Join Date: Dec 2003
Location: Florida
Posts: 1,930
There are several ways to do it including passing the PID as an environmental variable or as a command line argument.
  #4 (permalink)  
Old 03-17-2009
Yakuzan Yakuzan is offline
Registered User
  
 

Join Date: Feb 2009
Posts: 15
Well the problem is, I have a script that changes the NI number of the next opened process ( I.E xclock) which another script does.

Basically:

Menu > Script 3>:
NI number to: inputNI
>Menu>Script2>:
Press 1 to open an xclock>

NI set to $inputNI

I've covered everything except that. I have an export inputNI in the menu but I can't seem to pass from Script3 to Menu with my $inputNI
Closed Thread

Bookmarks

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 08:34 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