08-04-2008
(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!
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
when I pass any 2 parameters it always says:
Number of parameters passed: 1
and the job_name as x
Can some body help? (7 Replies)
Discussion started by: dsravan
7 Replies
2. Shell Programming and Scripting
debug output: (3 Replies)
Discussion started by: dsravan
3 Replies
3. UNIX for Dummies Questions & Answers
i have this basic code that accepts for two input one for the source file and the other is for the target directory. basically it is a simple copy command. the problem is at the end of the execution the second parameter string was passed to first parameter and it displays a message like:
cp:... (3 Replies)
Discussion started by: wtolentino
3 Replies
4. Shell Programming and Scripting
Hi,
I am facing a weird problem with input parameters. Please find more details about my problem below:
a) I am executing a korn shellscript with 11 input parameters from "Appworx" tool (it's a scheduling tool) and immediately displaying those 11 parameter values in unixscript and noticed... (4 Replies)
Discussion started by: npk2210
4 Replies
5. Shell Programming and Scripting
I have problem with params...I have created a script, which needs a path to PDF file as parameter.
for instance:
sh myScript.sh $HOME/myPdf.pdf
the problem is, when the PDF's name is not just myPDF.pdf but my pdf.pdf...I want to say, that the name of the PDF is separated by spaces, and... (2 Replies)
Discussion started by: Lukasito
2 Replies
6. Shell Programming and Scripting
Hi,
I am calling a sql file script.sql from shell script and passing few parameters also as shown below:
sqlplus -S id/password @script.sql $param1 $param2
Now,In sql file I have to create a extract text file after querying oracle tables based on the parameters passed(param1,param2) as... (7 Replies)
Discussion started by: anil029
7 Replies
7. Shell Programming and Scripting
Hi i have a script for show the information files. ls -l
how do you for to place this result in a file of text and to send it attached for e-mail.
The information of the mail must be in paramentros. for example e-mail to I must write the e-mail, the subject and the motive of the mail!
... (1 Reply)
Discussion started by: krlos07
1 Replies
8. Shell Programming and Scripting
Hi
I wrote a script which lists the content of a given directory.
I have just one problem. If you give 2 or more parameters, then it gives a strange error. After that error, it gives also an error from my script, but normally it shouldn't give that error.
Here's my script.You can test it.
... (3 Replies)
Discussion started by: hss
3 Replies
9. Shell Programming and Scripting
Hi Guru's,
I am new to shell scripting. I have a unique requirement:
The system generates a single pdf(/tmp/ABC.pdf) file with Invoices for Multiple Customers, the format is something like this:
Page1 >> Customer 1 >>Invoice1 + invoice 2 >> Page1 end
Page2 >> Customer 2 >>Invoice 3 + Invoice 4... (3 Replies)
Discussion started by: DIps
3 Replies
10. Shell Programming and Scripting
Hi Friends,
I have the following input parameters file
name
input
err1
out1
1
40G
DET
sylamer
dir1
dir2
123456
I want to make the following script
#!/bin/bash
# (5 Replies)
Discussion started by: jacobs.smith
5 Replies
LEARN ABOUT DEBIAN
hobbitclient.cfg
HOBBITCLIENT.CFG(5) File Formats Manual HOBBITCLIENT.CFG(5)
NAME
hobbitclient.cfg - Xymon client environment variables
DESCRIPTION
Xymon programs use multiple environment variables beside the normal set of variables. For the Xymon client, the environment definitions
are stored in the ~xymon/client/etc/hobbitclient.cfg file. Each line in this file is of the form NAME=VALUE and defines one environment
variable NAME with the value VALUE.
SETTINGS
BBDISP The IP-address used to contact the Xymon server. Default: Chosen when the Xymon client was compiled.
BBDISPLAYS
List of IP-adresses of Xymon servers. Data will be sent to all of the servers listed here. This setting is only used if
BBDISP=0.0.0.0.
BBPORT The portnumber for used to contact the Xymon server. Default: 1984.
BBHOME The Xymon client top-level directory. Default: The $HOBBITCLIENTHOME setting inherited from the "runclient.sh" script which starts
the Xymon client.
BBCLIENTLOGS
The directory for the Xymon clients' own logfiles. Default: $BBHOME/logs
BBTMP Directory used for temporary files. Default: $BBHOME/tmp/
BB Full path to the bb(1) client program. Default: $BBHOME/bin/bb.
Commands
Many extension scripts expect a series of environment variables to point at various system utilities. These are included in the file
when the client is built.
INHERITED SETTINGS
Some environment variables are inherited from the "runclient.sh" script which launches the Xymon client:
MACHINEDOTS
The hostname of the local system. Default: Taken from "uname -n".
MACHINE
The hostname of the local system, with dots replaced by commas. For compatibility with Big Brother extension scripts.
BBOSTYPE
The operating system of the local system, in lowercase. Default: taken from "uname -s".
HOBBITCLIENTHOME
The top-level directory for the Xymon client. Default: The location of the "runclient.sh" script.
SEE ALSO
xymon(7)
Xymon Version 4.2.3: 4 Feb 2009 HOBBITCLIENT.CFG(5)