10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello All,
I'm working on one Unix shell sript that will actually extract a column data from Oracle table using sqlplus and writes onto a file. I'm getting this error when executing the shell script:
rpt.ksh: ^JScott: not found
Below is the code in the shell script:
`sqlplus -s... (1 Reply)
Discussion started by: venkat_reddy
1 Replies
2. UNIX for Dummies Questions & Answers
Hi All,
I have written one shell script where I should call a function by passing variables to the actual function based on some condition.
Each time I run the script I am getting the below error
dsadm@bunyipd: /var/datastage/FRPDEVL/work/script> sh MClub_Validations.sh
Iteration: 1... (1 Reply)
Discussion started by: tpk
1 Replies
3. Shell Programming and Scripting
Hi ,
I am a newbie to shell scripting. I am getting the error on AIX machine
/tadfdc_setup_fed.sh: +: not found
Here tadfdc_setup_fed.sh is script which works fine on Linux Machine. But gives error on AIX (1 Reply)
Discussion started by: Anupam Kakade
1 Replies
4. Shell Programming and Scripting
Hello everyone,
I am having problems figuring this out.
This script below is supposed to create a list of file names with their "md5sum", in a file "lib-list.txt"
When I run it "sh component-list.sh " I get this:component-list.sh: 4: component-list.sh: function: not found
component-list.sh:... (4 Replies)
Discussion started by: joemb
4 Replies
5. AIX
Hey
I'm getting the below error when trying to launch the GUI installer.
I contacted the application owner and they asked me to remove JAVA_HOME env variable, I removed it but still get this error.
As the error message said, tried with -console and it didnt work too. nothing happened, it... (3 Replies)
Discussion started by: rocker_me2002
3 Replies
6. Shell Programming and Scripting
Hi,
I am not able to figure out what the problem is:
getting the following error
sqltst.sh: 1: not found
here is the script
#!/bin/sh
. /home/dev1/.profile
. /home/dev1/.infenv
`sqlplus -s $REPDB_LOGON << EOF
SET SERVEROUT ON
SET FEEDBACK OFF
SET HEADING OFF
SET TRIMSPOOL... (4 Replies)
Discussion started by: svajhala
4 Replies
7. Shell Programming and Scripting
Hi all,
Is there any command in Unix, which will stop the load process if any error is found in the i/p file?
I am trying to load 5 files sequentially.
A then
B then
C then
D then
E end;
1) If A encounter's any error while data load, the load process should stop, and it should not... (5 Replies)
Discussion started by: msrahman
5 Replies
8. Shell Programming and Scripting
I have shell script as below:
#!/bin/ksh
#set -xv
function set_variable
{
VARIABLE_NAME=$1
CURRENT_PATH=`pwd`
if ; then
echo "\nconfiguration_file.lst file not found in $CURRENT_PATH/common/common_scripts"
exit 1;
fi
VARIABLE_COUNT=`cat... (2 Replies)
Discussion started by: findprakash
2 Replies
9. Shell Programming and Scripting
shell script in very simple,
#!/bin/sh
function msgs
{
echo 'this'
}
msgs
It works on linux, apple, but can not run on solaris. On solaris, when I enter "./t.sh", it gave me following error,
./t.sh: function: not found
this
./t.sh: msgs: not found
What's wrong with... (3 Replies)
Discussion started by: microstarwwx
3 Replies
10. Shell Programming and Scripting
Hi
I had written the small script for calling a function.
bash-2.03$ more file2
function sai
{
echo " this is an example"
}
echo "This is main program"
echo "calling the function"
sai()
when executing the above script. I am getting error.
bash-2.03$ sh file2
file2: function:... (2 Replies)
Discussion started by: padarthy
2 Replies