Search Results

Search: Posts Made By: madfox
3,006
Posted By madfox
this below solution worked for me,what I did , I...
this below solution worked for me,what I did , I changed the unix script like this.


#!/bin/ksh

export ORACLE_HOME=/oravl01/oracle/11.2.0.3
export PATH=$PATH:$ORACLE_HOME/bin
export...
3,006
Posted By madfox
Using PHP , call a sql inside a unix script
I am running the xampp on WINDOWS, and my php script is connecting to a unix script on a different server (ssh2_connect("11.31.138.56", 22). I am running the unix script and inside this script I am...
999
Posted By madfox
Parse xml script using script
hi ,

I my xml I have a particular field like below I want to get the select query and use it in my script again.Sometime the query is very long and have new line also. This is embedded into an xml...
3,234
Posted By madfox
help to parse prstat -t
prstat -t -n 10 1 5

NPROC USERNAME SWAP RSS MEMORY TIME CPU
143 sbswrk1 2082M 2139M 3.3% 801:46:08 1.0%
26 sbswrk3 4573M 4675M 7.1% 651:28:35 0.8%
35 sbswrk2 3922M...
1,530
Posted By madfox
Add a new line
when I am running the below inside my script
export MEMORY_CPU_USAGE1=`ssh ${OLC_1_USER}@${OLC_1_HOST} prstat -t -n 10 1 5 | awk '!/MEMORY/ && !/lwps,/ && !/CPU/ && !/ave
rages:/ { if( $5 > "1%"...
1,452
Posted By madfox
If condition and htm not working
checkSync()
{
CONNECT_STRING=TLDB61/TLDB61@TL10G
SQLPLUS_SETTINGS="SET PAGESIZE 0 LINESIZE 1500 ECHO OFF TRIMS ON TAB OFF FEEDBACK OFF HEADING OFF"
...
2,156
Posted By madfox
I have a table cycle_definition in which i have a...
I have a table cycle_definition in which i have a colounm having cycle_close_day now this i want to insert into day (dd) part of this query in CYCLE_CLOSE_DATE .

cycle_close_day = 28
means...
2,156
Posted By madfox
Change in script to hardcode in a query
HI,
In a script i am using a query
${SQLPLUS_SETTINGS}
select c.CYCLE_CODE ||'|'|| NEXT_CYCLE_INST ||'|'|| CYCLE_YEAR ||'|'|| to_char(trunc(CYCLE_CLOSE_DATE +1),'DD-MON-YY
YY')||'|'||...
2,164
Posted By madfox
first of all thanks to check the code .... ...
first of all thanks to check the code ....

This is written by a senior who has left ....so i dnt have any manual or help.

I want to send emails for some particular alert and both email and sms...
2,227
Posted By madfox
Awk command to print the field
894344202808090;11122;040320 075858 166;101;0;0;10u;0;NA;65;221890;2;101973;185059;568674;Y; PRE;0;0;NA;NA;0;NA;0;NA;textmsg;textmsg_snd1;telusmob;TEXTMSG1;0.15000000;126037;2010/03/04...
2,164
Posted By madfox
code to monitor a process
hi,

I need to change the code such that it becomes configurable to send email or sms or both.
At the moment the code works like sending both email and sms for any alert now want to change it to...
5,113
Posted By madfox
require to save my time
Actually , I need to connect to 37 machines one by one . So i want to do something like put all username and machine name in a file and pass it to putty as I want like :

1. 12 Machines of a...
5,113
Posted By madfox
Change the putty code to get machine and user name from a file
HI,
I have parsed a file and stored all my machine name and user name in a list.

Now I want to change in the putty code such that the machine name and user name can be passed through calling...
3,348
Posted By madfox
This is not working .. why i dnt know but still i...
This is not working .. why i dnt know but still i can can see the header coming as output.. please help and thanks
3,348
Posted By madfox
print lines except the header
awk -F ";" '{if($10>80 && NR>1) print $0 }' txt_file_*

I am using this command to print the lines which has 10th field more then 80 and leaving the first line of the file which is the header.
...
6,827
Posted By madfox
Thanks Scottn , This will not modify or...
Thanks Scottn ,

This will not modify or remove or edit anything . As I am working in production
6,827
Posted By madfox
please tell me how to use touch and -newer with...
please tell me how to use touch and -newer with find as Cmin is not working in my OS
6,827
Posted By madfox
Script to send an alert if a file is present in a directory for 10 min
hi,

A script which look into a directory and send an alert via a mail. If there is any file exisiting in a directory for more then 10 min.
2,104
Posted By madfox
want to find out a function name in a cpp file
I have an error in my logs as it shows some function name .

1. I dnt know where is the file.cpp located only i know the machine .

2. How to find out that the function name is loacated in which...
20,144
Posted By madfox
How to create a log file of a script?
hi,
How to create a log file of a script. Like spool does .
I want to create a log file of whatever the script is doing step wise.

like -xvf does or something better then that.

thanks ...
3,461
Posted By madfox
awk to print field no 10 and complete event
hi,
awk -F ";" '{if($10>500) then i++; } END{print i}' event_file_FR12_202_24-11-2009_* | less

How to modify and add to this above to print the complete line in less

ex :...
2,239
Posted By madfox
Any other work around or change in code so i can...
Any other work around or change in code so i can manage the above . Only into the final output file i need the header .
2,239
Posted By madfox
,680135.500000,14607180.900000 ...
,680135.500000,14607180.900000
Breakage,0.000000,151024.010000
L9_RECHARGE_DESCRIPTION,0.000000,0.000000
POS Recharge,59185.400000,7927.250000
PP Refund,593.320000,625.200000
Positive...
2,239
Posted By madfox
append a line into a file in the top
hi,
My code is

#!/bin/sh

echo "\n\nPlease enter the month of the year(YYYYMM) : \c"
read date_rep

INPUT_L9_FILE=L9_Recharge_Description_EOM_$date_rep.csv

#This part is used to...
1,707
Posted By madfox
hi Ripat, This is working fine for me...
hi Ripat,
This is working fine for me ....Thanks .
Actually I was not knowing tht awk array can take index as a string also.
Ur guess has hit the bull's eye. genius

---------- Post updated at...
Showing results 1 to 25 of 30

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