10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a requirement to perform specific set of tasks based on server , So I want to have the condition(s) defined based on server. Here is the script I came up with and I have read multiple blogs and couldn`t find any mistake from my script. Can you guide on what I am overlooking here ?
... (2 Replies)
Discussion started by: Varja
2 Replies
2. Shell Programming and Scripting
please follow below code
if ; then
its giving me an error as "test1.sh: line 3: r=$(eval echo '$lck_'$TABLE != "")
if
can anyone tell me how to do inside if condition...with out use any variable..
TIA (6 Replies)
Discussion started by: gnnsprapa
6 Replies
3. UNIX for Dummies Questions & Answers
Hi All,
I need to compare the header of the input files which can be comma demilited, tild(~) or Pipr(|) seperated file.
I am comparing the file header by taking 1st row and comparing it with input row:
Below is the actual code:(ksh script)
if
then
echo $dat >>... (4 Replies)
Discussion started by: abhi_123
4 Replies
4. Shell Programming and Scripting
I'm trying to run following code:
while
do
echo "Hello World"
done
but I'm getting error on first line:
./test: line 1: syntax error near unexpected token `('
can anyone please tell me who can i run this loop. Also please tell me what will be syntax of do while loop in case i... (11 Replies)
Discussion started by: kashif.live
11 Replies
5. Shell Programming and Scripting
Hi Guys,
Can you please help me to check if my condition is correct.
if &&
then
if ; then
# active
SE_USERID_LUZON_5="A"
elif ; then
# not active
SE_USERID_LUZON_5="D"
${ECHO_CMD}... (3 Replies)
Discussion started by: nikki1200
3 Replies
6. Shell Programming and Scripting
Hi all,
ssh uname@remote_server 'cat /tmp/remote_file_name > home_dir/a512386/new/local_file_name'
The above given command is working fine.
but if i try to move the file only if exists in the remote server i.e) giving the same within if condition it executes but the file is not stored in my... (1 Reply)
Discussion started by: Shri123
1 Replies
7. UNIX for Advanced & Expert Users
checkSync()
{
CONNECT_STRING=TLDB61/TLDB61@TL10G
SQLPLUS_SETTINGS="SET PAGESIZE 0 LINESIZE 1500 ECHO OFF TRIMS ON TAB OFF FEEDBACK OFF HEADING OFF"
SQL_RESULT_SYNC_PMCM=`sqlplus -s ${CONNECT_STRING} << EOF
${SQLPLUS_SETTINGS}
(SELECT... (2 Replies)
Discussion started by: madfox
2 Replies
8. Shell Programming and Scripting
Hi,
I am using RHEL5.
I have following if condition.
if
In the above condition, if the value of a contains word WARNING, it should match. i.e., WARNING_MESSAGE, CRITICAL WARNING, WARNING ALERT etc. it should match.
For b, alert error, ALERT ERROR, ERROR IMMEDIATE ACTION REQUIRED, etc... (2 Replies)
Discussion started by: user7509
2 Replies
9. Shell Programming and Scripting
Hi..
Im using the following script to find whether the present day is monday or not. If it is monday it has to do a specific set of things.
#!/bin/sh
Present_Date=`date`
LOAD_DAY=`date -d "$Present_Date" | cut -d " " -f 1`
echo $LOAD_DAY
if ;then
echo "Monday"
#statements;... (6 Replies)
Discussion started by: abala
6 Replies
10. Shell Programming and Scripting
Hi Gurus,
I have shell script in which i have to check if time is between to possible value or not. For that i am using following line of code
if
then
echo 'Found In Between'
echo $ftime
... (5 Replies)
Discussion started by: MANISH KU
5 Replies