Search Results

Search: Posts Made By: svajhala
13,685
Posted By svajhala
Return: can only `return' from a function or sourced script
Not sure where the problem is. I can run the script without any issue using the following command.

. /opt/app/scripts/cdc_migration.sh

But it fails with the below error when I try it this way
...
1,296
Posted By svajhala
Thanks for being judgmental about my seniority on...
Thanks for being judgmental about my seniority on this forum just by looking at the years and number of posts I have posted on this forum. Unix programming is not my mainstream work and I get to work...
1,296
Posted By svajhala
Thank you. I am working on bourne shell. ...
Thank you. I am working on bourne shell.

Sorry I am a rookie here. As soon as the value (from the last line of the file) matches the search string, I want to send an email and continue to monitor...
1,296
Posted By svajhala
Monitor and capture the latest entry from the log file
Hi,

I want to monitor a log file using tail -f command and search for a specific string on the most recent entry from the file. If the search string matches with the most recent or last line from...
8,858
Posted By svajhala
It worked perfectly for my requirement. Thank you...
It worked perfectly for my requirement. Thank you Scrutinizer!

Would you spare few minutes to explain the awk command that you posted.

Thanks.
8,858
Posted By svajhala
I tried the following awk command. awk...
I tried the following awk command.

awk 'BEGIN{FS=" * *"; OFS="|"} {$1=$1; print}' temp_dbinfo.7880

However its inserting 'pipes' where it is not required as shown below. Also in some places it...
8,858
Posted By svajhala
Remove leading and trailing spaces from a file
Hi,

I am trying to remove leading and trailing spaces from a file using awk but somehow I have not been able to do it.

Here is the data that I want to trim.

07/12/2017 15:55:00 ...
1,277
Posted By svajhala
Yes that's pretty much what I would like to do.
Yes that's pretty much what I would like to do.
1,277
Posted By svajhala
Thanks for your time Andrew. I am working on...
Thanks for your time Andrew.

I am working on Python 2.6.9 (unknown, Aug 5 2016, 11:15:31)

Basically I want to execute the following statements in sequence. It can be done inside the python...
1,277
Posted By svajhala
Use the variables in a python script.
Hi,

I have a defined some variables in a configuration file and I want to use those variables in a python script. For example, I have the following variables in a configuration file.

[test_ini]...
1,100
Posted By svajhala
Just wanted to check if someone can help. ...
Just wanted to check if someone can help.

Thank you.
1,100
Posted By svajhala
Problem with script
Script works fine on the server on which it is running, but fails to run the command when it runs on a remote host using the ssh.Here's the script:

#!/bin/bash

fdate=$(date "+%Y-%m-%d")
export...
3,308
Posted By svajhala
Thanks a lot. Can you please explain me about...
Thanks a lot. Can you please explain me about '<&3' in the script?
3,308
Posted By svajhala
Run a command on multiple hosts
I created a script to check for tsm backup status on linux hosts. Script uses a source file to connect to each host and run a dsmc command on each host and write the output back to a output file...
1,989
Posted By svajhala
It's working now, thanks Sea.
It's working now, thanks Sea.
1,989
Posted By svajhala
Here's the output I got from the above command. ...
Here's the output I got from the above command.

[greg@sbldev01 ~]$ bash -xv ./fs.sh
#!/bin/bash
#set -x
#
# Variables
#
TMP=$HOME/tmp/${0##*/}-fs.out
+...
1,989
Posted By svajhala
ok, now I get a different output. snapshot...
ok, now I get a different output.

snapshot directory not found on ""
Today's backup is missing for /sblmnt/sb_devm2_sbl_01/.snapshot on sbldev01
snapshot directory not found on ""
Today's...
1,989
Posted By svajhala
Thanks sea for rewriting the code. However when I...
Thanks sea for rewriting the code. However when I execute your code on the server, I get the following output.

snapshot directory not found on ""
snapshot directory not found on ""
snapshot...
1,989
Posted By svajhala
Issue with while loop?
Hi,

I have prepared a script to search for backup file information on the Linux server. Script works fine for the most part except the echo statement inside an IF conditional block displays the...
2,464
Posted By svajhala
removing the active function as you suggested did...
removing the active function as you suggested did the trick. Thanks much!
2,464
Posted By svajhala
Just for clarity, here I am pasting the output of...
Just for clarity, here I am pasting the output of the spoolfile created by the SQL statement.

inform@pocinf09:/app/prod/informat/Scripts/ctrl:#cat temp.21791

TD_Tpump_Insert
TDEDW
...
2,464
Posted By svajhala
Hi RudiC, As mentioned earlier, script is...
Hi RudiC,

As mentioned earlier, script is throwing an error from the first line of output from the SQL spool file, which is
TD_Tpump_InsertAs you suggested, I have removed the space before EOF...
2,464
Posted By svajhala
Error while executing the shell script
Hi Gurus,

The following script fails with the error 'command not found' while trying to execute. As the error indicates, the script fails at ROW#30 where the EOF is defined for SQL statement.
...
Forum: Linux 10-07-2014
5,707
Posted By svajhala
Thanks Cero. Personally I like to go with your...
Thanks Cero. Personally I like to go with your approach. But the advise I got from the teams is to do it the way it is currently setup. Even my manager agrees with them and asked me to follow KISS...
Forum: Linux 10-06-2014
5,707
Posted By svajhala
Thanks for your inputs. I think Rudy's approach...
Thanks for your inputs. I think Rudy's approach sounds good to me. Also I will forward cero's approach to my teams and will decide on the next steps.

Thank you.

Sudheer
Showing results 1 to 25 of 109

 
All times are GMT -4. The time now is 12:33 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy