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
unable to log into gdm, urgent help needed!!!pls wrapster Shell Programming and Scripting 0 04-25-2008 01:48 AM
urgent needed manish1 Shell Programming and Scripting 0 03-13-2008 05:09 AM
Urgent help needed skyineyes UNIX for Dummies Questions & Answers 5 06-19-2007 04:31 AM
urgent help needed !! guhas Shell Programming and Scripting 0 09-10-2005 02:01 PM
Urgent Help needed mgchato High Level Programming 0 05-19-2005 03:49 AM

 
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
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 12-07-2006
Batch Batch is offline
Registered User
  
 

Join Date: Dec 2006
Posts: 3
urgent help needed.

Ok I admit it I am stumped and I would appreciate any and all help

Here is what I am trying to do.

Korn Shell script

I am setting a variable to another shell script that I want to invoke in my main script like so:

GETDIR=/vol100/cfg/.getdir

The .getdir shell script take a parameter, for example:

./getdir somedir

This returns a single entry.

I set another variable in the main script to the parameter
PARAM=someparameter

Now inside my main script I want to get the result of running the .getdir script with the parameter

And I am trying to do this like so

NETDIR=$(${GETDIR} ${PARAM})
echo ${NETDIR}

But it doesn't work ${NETDIR} is always empty.

Any suggestions?

Thanks,

Batch
 

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 04:51 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