![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 12: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 03:31 AM |
| urgent help needed !! | guhas | Shell Programming and Scripting | 0 | 09-10-2005 01:01 PM |
| Urgent Help needed | mgchato | High Level Programming | 0 | 05-19-2005 02:49 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
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 |
|
||||
|
Sorry it is a hidden file so it is .getdir And the parameter that it takes is just a hashed value of some text and the .getdir script unhashes it.
When I run the .getdir script in the console with the parameter it works fine. But as I said it doesnt seem to be doing anything in the main script. I was very curious about the syntax of that line that you quoted and I thank you for your reply. -Batch |
|
||||
|
It was a permissions problem. Thanks for all your help.
|
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|