10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
i am beginner in shell scripting.
not able to understand what below line will do.
PS1=${HOST:=Žuname -nŽ}"$ " ; export PS1 HOST
below is the script
#!/bin/hash
PS1=${HOST:=Žuname -nŽ}"$ " ; export PS1 HOST ;
echo $PS1
and i getting the below output
Žuname -nŽ$ (25 Replies)
Discussion started by: scriptor
25 Replies
2. Shell Programming and Scripting
I am running the export command within a view to use that value inside my build script. But while executing it it is saying "export command not found"
My code is as follows:
--------------------------
#!/bin/sh
user="test"
DIR="/bldtmp/"$user
VIEW="test.view1"
echo "TMPDIR before export... (4 Replies)
Discussion started by: dchoudhury
4 Replies
3. Shell Programming and Scripting
I have a txt file from which i am assiging a value to a variable
using the code in script1
script1.sh
export f=$(sed -n "/Freq *=/ s/.*= *//p" ${R_path}/output.txt)
echo "$f" --------> this works
in script2 ( which executes the script1)
eval ./script1.sh
if && ; then
echo... (1 Reply)
Discussion started by: shashi792
1 Replies
4. Shell Programming and Scripting
Hi, I am facing a problem while scheduling an export of a table using cron job. I have written a simple export command inside a shell script test.sh like
echo started
exp schemaname/temp1234 file= /test/d.dmp tables=per_st log= /test/d.log
echo ended
I tried scheduling it through... (6 Replies)
Discussion started by: beautifulmind
6 Replies
5. Shell Programming and Scripting
Hello All,
I am transferring a file from one server to another server.
File name is stored as Wip_DD-MM-YY .i.e if we run the program today the file is stored as Wip_18-FEB-09.txt.
This file i need to transfer.
My question is how do we assign the this filename to a variable.
i treid in... (3 Replies)
Discussion started by: chpraveen_862
3 Replies
6. Shell Programming and Scripting
Sorry for the duplicate thread this one is similar to the one in
https://www.unix.com/shell-programming-scripting/88132-awk-sed-script-read-values-parameter-files.html#post302255121
Since there were no responses on the parent thread since it got resolved partially i thought to open the new... (4 Replies)
Discussion started by: rajan_san
4 Replies
7. Solaris
Hi Guys,
Thanks for taking the time to read the problem i having outlined below:
Before i go into the problem can you please tell me what the following means?
a. "dt" stands for and what does it means?
Configuration Below:
1x Unix Server
2x Unix Terminals
(both systems are... (3 Replies)
Discussion started by: tlee
3 Replies
8. UNIX for Dummies Questions & Answers
hi, :)
I created a main script called "Paymain.prg" ( /proj/paymain.prg)
In this script i created two variables as follows
MASTER=/HOME/emaster.dbf
TRAN=/HOME/etran.dbf
Aftre that i exported that two variables
EXPORT MASTER TRAN
But when i use these two variable in another script calld... (3 Replies)
Discussion started by: ravi raj kumar
3 Replies
9. Shell Programming and Scripting
Me dumb. Can't get this to work...
#!/bin/sh
export JAVA_HOME_BAK=${JAVA_HOME}
or
#!/bin/sh
export JAVA_HOME_BAK=/usr/java
or
#!/bin/sh
export JAVA_HOME_BAK=$JAVA_HOME
or
#!/bin/sh
export JAVA_HOME_BAK $JAVA_HOME
etc.... none work.
Either i get: "JAVA_HOME_BAK=/usr/java: is not... (1 Reply)
Discussion started by: xplodersuv
1 Replies
10. UNIX for Dummies Questions & Answers
Is there any difference between these 2 commands :-
export var="a"
and
var="a"
export var (2 Replies)
Discussion started by: radhika03
2 Replies