Search Results

Search: Posts Made By: samrat dutta
18,942
Posted By samrat dutta
Hi, Using Linux 5 . A change in the script...
Hi,
Using Linux 5 . A change in the script which will take a input file which has servername,port. As telnet was not going into the next item in the file, i used curl instead of telnet. This works....
18,942
Posted By samrat dutta
Telnet of multiple server and ports
Hi,
I do a telnet to a single server using command :telnet tibserver001 9640
The output i get is :

Trying 10.19....
Connected to tibserver001


However i need to put all the servers in a...
2,582
Posted By samrat dutta
Thanks All. It worked. :)
Thanks All. It worked. :)
2,582
Posted By samrat dutta
Hi I removed the echo but i am not able to pass...
Hi I removed the echo but i am not able to pass the ${node} value from the input file to the current script. Basically my requirement again is to read a input file which has comma seperated values ....
2,582
Posted By samrat dutta
I made a comman seperated file as below . ...
I made a comman seperated file as below .
Property file :

PSIHUBV1,PSIHUB04


Below is my script but when i execute it i find the actual command "cfsend" is not getting executed and the...
2,582
Posted By samrat dutta
Hi Aia the values in property file can be comma...
Hi Aia the values in property file can be comma seperated or newline entries. I am trying to be prepared for both type of entries and adjust the script accordingly.

Thank you
2,582
Posted By samrat dutta
The property file can be in any format below: ...
The property file can be in any format below:

a) comma separated like:

trupv01,trup2v,bv034rt,bv014rn


b)list of values like:

trupv01
trup2v
bv034rt
bv014rn
2,582
Posted By samrat dutta
Read a file and replace values in a script
Hi ,
I have a property file placed in folder /usr/opt/temp/aorc.prop which has values given below . I need to read this file content and replace the node with actual values in a shell script . Each...
Forum: Linux 08-28-2015
14,701
Posted By samrat dutta
is there a way to come out automatically from...
is there a way to come out automatically from nohup? Following code remains in a hung state and control is never returned.

nohup ./hawkagent_BWQA &
Forum: Linux 08-28-2015
14,701
Posted By samrat dutta
Hi I need to execute the entire line from ANT so...
Hi I need to execute the entire line from ANT so i have reduced to a single line entry in ant.
How to combine the below two commands in a single line which finds the PID and also starts my hawkagent...
Forum: Linux 08-27-2015
14,701
Posted By samrat dutta
Thanks . I executed and it worked. Well when i...
Thanks .
I executed and it worked. Well when i run my code as ./test.sh i get the desired output but the nohup screen doesn't exit.

[BWQA]$ ./test.sh >> temp.txt
[BWQA]$ nohup: redirecting...
Forum: Linux 08-27-2015
4,263
Posted By samrat dutta
Thanks All. Its resolved :) Samrat
Thanks All. Its resolved :)

Samrat
Forum: Linux 08-27-2015
14,701
Posted By samrat dutta
Find a process ID,kill it and restart agent
#!/bin/bash
#This shell finds the pid of the hawkagent and kills and restarts to put the rulebase into effect
output=`ps aux|grep hawkagent`
#The set -- below helps to parse the above ps output...
Forum: Linux 08-14-2015
4,263
Posted By samrat dutta
Well Rudi i gave that permission just to make...
Well Rudi i gave that permission just to make sure that the final file is readable and executable. This file shall be invoked by a monitoring application called TIBCO Hawk and the rules implemented....
Forum: Linux 08-12-2015
4,263
Posted By samrat dutta
Hi I got the desired output file. Thanks ALL :) ...
Hi I got the desired output file. Thanks ALL :)


#!/bin/bash
CompInsName=$1
DepName=$2
templatefile=/usr/tmp/CommonTemplateStop.template
sed "s/CompInsName/$CompInsName/;s/DepName/$DepName/g"...
Forum: Linux 08-11-2015
4,263
Posted By samrat dutta
Search a template file and replace with input
Hi I have a CommonTemplateStop.template file . Inside the file i need to replace the variables DepName and CompInsName with the values(Trade and TradeIns) specified in the script. I have written the...
8,495
Posted By samrat dutta
Thanks All
Thanks All
8,495
Posted By samrat dutta
Thanks Friends. Meanwhile in my original...
Thanks Friends.

Meanwhile in my original post i wanted to highlight the issue i faced using awk and tail in solaris . Can you guys help me to point out if anything is missed here ? Error is...
8,495
Posted By samrat dutta
Hi I ran the below script. It basically reads the...
Hi I ran the below script. It basically reads the entire control file and displays. However My requirement is to pass into the main script an argument like client_ftx or client_ptm and the script...
8,495
Posted By samrat dutta
Read a control file
Hi I have the below .sh script which receives a argument ftpClient=$1 . This argument i am trying to read from a control file called ftpProperties.control.
Based on the argument input(client_ftx OR...
986
Posted By samrat dutta
Replace a string with a new value
Hi ,
I have 2 tasks as outlined below:
(1)
I have a set of XML's placed in a unix dir /app/files . Inside the XML's i have a field named as description. I would like to write a script which would...
984
Posted By samrat dutta
Thanks it worked :) nawk...
Thanks it worked :)


nawk 'a=match($0,/\|BBG.........\|/) {print substr($0,a+1,12)}' temp


Also need some details of how it does . What does $0 do and /\?
984
Posted By samrat dutta
My input file looks like below . I want to...
My input file looks like below . I want to extract the field value which starts with BBG. This value is of 12 chars in length.


bcd|BBG000KFWBB1|yup|12f
abc|BBG000KFEXB1|red|34f...
984
Posted By samrat dutta
Extract value from file
Hi,
I have a file where data is pipe seperated. I want to extract a field which is 12 characters in length and starts with BBG(|BBG000KFWBB1|). Both has pipe delimeter at the start and end. The...
2,658
Posted By samrat dutta
Thanks. I just wanted that the 4th column rbcid...
Thanks.
I just wanted that the 4th column rbcid value should be sorted in such a way that all like ones are in sequence no matter what the values are.
Like rbcid value starting with 15277105...
Showing results 1 to 25 of 50

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