10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am trying to place one SQL query in Shell Script with Where Condition as Status='1' But after running the the script it is returning error as
SQL0206N "1" is not valid in the context where it is used. SQLSTATE=42703
The query is working fine in Data Base.
Please suggest... (1 Reply)
Discussion started by: sumanmca2006
2. UNIX for Dummies Questions & Answers
I am new to shell script.I need your help to write a shell script.
I need to write a shell script to extract data from a .csv file where columns are ',' separated.
The file has 5 columns having values say column 1,column 2.....column 5 as below along with their valuesm.... (1 Reply)
Discussion started by: Vivekit82
3. Shell Programming and Scripting
I have written this script. This is used for creating a backup folder.
usage="Usage is $0"
# Use the getopt utility to set up the command line flags.
set -- `/usr/bin/getopt b: $*`
# Process individual command line arguments
while ;... (1 Reply)
Discussion started by: arijitsaha
4. Shell Programming and Scripting
I am needing to include some if statements within an expect script. These will need to have two conditions under an AND join. Upon a successful IF condition I want to set multiple variables.
I have tried a lot of variations of the below statement with no success. I have also searched the WEB... (2 Replies)
Discussion started by: Slagathor
5. UNIX for Dummies Questions & Answers
It has been a long time since my last post, but finally I've got a new question:
I know in case you can use multiple patterns by
case $var in
and so on.
But how would I place an OR between
I want to execute the "..." if... (3 Replies)
Discussion started by: intelinside
6. Shell Programming and Scripting
I m creating script which is give me below error.
./function.ksh: here document `EOF' unclosed
Inside the script is
echo "sql is... (3 Replies)
Discussion started by: tapia
7. Shell Programming and Scripting
I am new to shell scripting.
Can any one say what is wrong in this if statement, that uses multiple conditions
if ( -z $pcs && "$night_time_calc" > "$night_time" )
... (4 Replies)
Discussion started by: ssenthilkumar
8. Shell Programming and Scripting
if -o ]
echo "Expected valid value"
The above multiple if condition is NOT working in my script.
I am getting the error as '-a' not expected. Can anyone help with the syntax for this? (5 Replies)
Discussion started by: dinesh1985
9. Shell Programming and Scripting
Guys, Im trying to have a script that evaluates multiple conditions :
echo "host $1"
echo "host $1"
echo $1 not valid
when I do
I get: (4 Replies)
Discussion started by: bashshadow1979
10. Shell Programming and Scripting
I need to check whether one file has EOF or not.
There's one daemon in our system, which will pick the files FTPed to us. However, sometimes the daemon picks the file before FTP is finished.
So I'm planning to add some checking of EOF on the FTPed files in the shell script.
Could... (8 Replies)
Discussion started by: ideazhcy