Search Results

Search: Posts Made By: dhirajdsharma
1,769
Posted By dhirajdsharma
Still same error message
Please assist..
1,769
Posted By dhirajdsharma
script to kill a pid giving error
Hi,

I simply want to kill a running process using a script that read pid from a file and tries to kill it .Getting error as shown below code..



cat $HOME/BackupScript.ksh.run | head -1 |...
3,335
Posted By dhirajdsharma
How to tackle an empty string caught in read command
Hi All,

In code below,if pe.txt does not have a string "Component Manager stopped" then when my awk does not find the intended string in the txt file then 'read' command passes an empty value to...
11,861
Posted By dhirajdsharma
Unable to connect to sqlplus from unix
Hi,

I have been trying to connect to sqlplus the same way I used to do in my earlier company but I get these error messages , please suggest way out -

user name - xyzuser
schema name -...
1,324
Posted By dhirajdsharma
Script not checking previous instance run
Hi All,

I have developed :D a script that should run only if previous instance has stopped .
But illogically :o my script runs even if previous instance is running .I am not sure :confused: what...
3,335
Posted By dhirajdsharma
Working Now.
Issue resolved.

I was using

sed 's/://g' newfile.txt | read temp


at the start of my script which was giving output


./tivoliscript.ksh[22]: ^[^[[A^[[A^[d: not found.


I removed...
3,335
Posted By dhirajdsharma
Hi , I get the intended result , however I...
Hi ,

I get the intended result , however I also get this output -

./tivoliscript.ksh[22]: ^[^[[A^[[A^[d: not found.


Please help.:rolleyes:
3,335
Posted By dhirajdsharma
Shailesh, My requirement is to read a log file...
Shailesh,
My requirement is to read a log file (pe.txt) of 35kB and send an alert if any string "Component Manager stopped" is received. also not to report the same alert again.
So ,I am parsing...
3,335
Posted By dhirajdsharma
Guys , You are all awesome .. hats off.. ...
Guys ,

You are all awesome .. hats off..

I used this
awk '/Component Manager stopped/ {gsub(":","",$2);print $2}' msgtime.txt | while read msgtime do # I was using msgtime elsewhere in...
3,335
Posted By dhirajdsharma
Hi , 47shailesh : I get the following error ...
Hi ,

47shailesh : I get the following error

./tivoliscript.ksh[19]: msgtime: not found.

Please suggest.


Please click this link: How to use tags...
3,335
Posted By dhirajdsharma
unable to read a parameter
All,

on command prompt when i am testing I am able to get the value of 'msgtime' parameter but in the script I get a space value for it . Please help ..

following is the code snippet -

grep...
2,012
Posted By dhirajdsharma
Please note that my code is following and not the...
Please note that my code is following and not the previously posted -

#!/bin/ksh
tail -300 pe_1.txt > msgtime_1.txt

tail -r msgtime_1.txt > msgtime.txt

head -1 newfile.txt | sed 's/://g' |...
2,012
Posted By dhirajdsharma
Monitoring Sript giving random end result
Hi Guys,

I am developing a script to monitor GUI based FileNet Component "Component Manager" which logs it's running status in a log file.

Log file is a huge file so in script I put last 300...
Showing results 1 to 13 of 13

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