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



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

Closed Thread
English Japanese Spanish French German Portuguese Italian Powered by Powered by Google
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-04-2008
Registered User
 

Join Date: Aug 2008
Posts: 2
(Problem) Script with Parameters file

Hello, this is my first post, and.... obviusly, i have a problem, i have this script:
#!/bin/sh
. /tmp/variables
...
...
DESTINATION=`hostname`_DESTINATION
...

and the /tmp/variables has:
#!/bin/sh
aix53_DESTINATION="/temporal/`hostname`.mksysb.`date +\%d\%m\%y`"

**
The problem is that when i ran the script, the result of the variable DESTINATION is aix53_DESTINATION="/temporal/aix53.mksysb.040808, i want that the result were /temporal/aix53.mksysb.040808, somebody knows how to do that?.

Thanks!
Sponsored Links
  #2 (permalink)  
Old 08-04-2008
ynilesh's Avatar
Registered User
 

Join Date: Oct 2007
Location: Bangalore, India.
Posts: 222
What is your hostname? and could you please tell what exactly you are trying to set ? i mean what exactly you expect in result. ?

-nilesh
  #3 (permalink)  
Old 08-04-2008
Registered User
 

Join Date: Aug 2008
Posts: 2
Yes, my hostname is aix53 and the result i want is:
/temporal/aix53.mksysb.040808

The actual result is all the variable line:
aix53_DESTINATION="/temporal/aix53.mksysb.040808"
Thx
Sponsored Links
Closed Thread

Bookmarks

Tags
parameter file, script

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 Off


More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Problem with script not able to take parameters passed to it dsravan Shell Programming and Scripting 3 02-28-2008 05:09 PM
help me in sending parameters from sqlplus script to unix shell script Hara Shell Programming and Scripting 2 01-29-2008 03:31 PM
Problem with script not able to take parameters passed to it dsravan Shell Programming and Scripting 7 10-09-2007 10:28 PM
problem in passing parameters with spaces njraman Shell Programming and Scripting 2 07-26-2007 05:37 AM
Perl DBI - Bind Parameters Problem mh53j_fe Shell Programming and Scripting 1 12-22-2005 11:00 AM



All times are GMT -4. The time now is 05:29 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-2010. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0