Search Results

Search: Posts Made By: aroragaurav.84
21,468
Posted By aroragaurav.84
It worked fine. but how to put the sql output...
It worked fine. but how to put the sql output into the xls file.

Now How do i send it to excel sheet.
I have done some part but dont know how to append the sql output

FILENAME:...
21,468
Posted By aroragaurav.84
Thanks Scott it works now. let me know how to...
Thanks Scott it works now. let me know how to write the output of this statement in a file as well
21,468
Posted By aroragaurav.84
Scott Can you please be more specific. Do I have...
Scott Can you please be more specific. Do I have to use another script like sqlscript. I am just a begginer so asking. Dont have much idea.
21,468
Posted By aroragaurav.84
How to pass Variable from shell script to select query for SqlPlus?
echo "set echo off"; echo "set feedback off"; echo "set linesize 4000"; echo " set pagesize 0"; echo " set sqlprompt ''"; echo " set trimspool on";

Select statement is mentioned below
echo...
8,943
Posted By aroragaurav.84
How to capture exit code of child script and send it to parent script?
#!/usr/local/bin/bash

set -vx

/prod/HotelierLinks/palaceLink/bin/PalacefilesWait /prod/HotelierLinks/palaceLink/bin/prodEnvSetup 03212013 &
if [ $? ne 0 ]
then
echo "fatal error:...
10,946
Posted By aroragaurav.84
We are using AIX version not GNU. Provide the...
We are using AIX version not GNU. Provide the solution for AIX for date increment where --date is not supported.
10,946
Posted By aroragaurav.84
for i in {1..10} do date +"%d/%m/%y"...
for i in {1..10}
do
date +"%d/%m/%y" --date="-$i days ago"
done


but getting the error

date: 0551-402 Invalid character in date/time specification.
Usage: date [-u] [+"Field...
10,946
Posted By aroragaurav.84
How to increment date using "for loop" in format MMDDYY inside the shell script?
Need to increment the date from "currentdate + 90days" inside the for loop (i=1 to i=50)
1,047
Posted By aroragaurav.84
Help with using awk for the file
INPUT FILE1:

Fri Jan 25 12:13:59 EST 2013:threadWebContainer : 624:com.travimp.hotelierlinks.abba.service.RequestHandler.requestService(String, ITICSDataSet): hotelMakeNewReservation response: ...
1,753
Posted By aroragaurav.84
How to calculate what percentage of X value is there in the file?
Input File:
5081
2058
175
8282
2358
7347
6612
3459
END OF INPUT FILE

I need to know how to calculate minimum,maximum,average of the values in the file and also what percentage is the...
5,298
Posted By aroragaurav.84
Finding minimum maximum and average
I am trying to find the minimum maximum and average from one file which has values

Received message from [https://www.demandmatrix.net/app/dm/xml] in [939] milliseconds.
Received message from...
19,937
Posted By aroragaurav.84
TIME_DATE_SPLIT=`date +%Y-%m-%d-%p` ...
TIME_DATE_SPLIT=`date +%Y-%m-%d-%p`

TIME_CHECK="`(echo $TIME_DATE_SPLIT | cut -d "-" -f 4)`"

#######FUNCTION START########
PREVIOUS_DATE_FUNCTION()
{

date '+%m %d %Y' |
{
read MONTH...
1,015
Posted By aroragaurav.84
Function returns a value but cannot be stored in other variable
I need help to store the value returned from the function to one variable and then use that variable.
PREVIOUS_DATE_FUNCTION()
{

date '+%m %d %Y' |
{
read MONTH DAY YEAR
DAY=`expr "$DAY" -...
1,651
Posted By aroragaurav.84
But when i am using this ...
But when i am using this
PREVIOUSDATE="`(PREVIOUS_DATE_FUNCTION)`" tempfile=CANCEL_FILE_$PREVIOUSDATE

I am not getting the output correct...i am only getting
tempfile=CANCEL_FILE_

but i...
1,651
Posted By aroragaurav.84
no please tell me how to save the value in...
no please tell me how to save the value in variable and use it, Thanks..!!
1,651
Posted By aroragaurav.84
+ PREVIOUSDATE=2012-06-26 + echo 2012-06-26 ...
+ PREVIOUSDATE=2012-06-26
+ echo 2012-06-26
2012-06-26
1,651
Posted By aroragaurav.84
How to store value from a function and use it?
There is one function to calculate previous day value and then touch one file with that date.The problem is i am getting the previous day value but not able to store it in other variable and use it....
19,937
Posted By aroragaurav.84
This is what i am doing: ...
This is what i am doing:

TIME_DATE_SPLIT=`date +%Y-%m-%d-%p`

TIME_CHECK="`(echo $TIME_DATE_SPLIT | cut -d "-" -f 4)`"

TIME_CLOCK="AM"

if [ $TIME_CHECK -eq $TIME_CLOCK ]; then
echo...
19,937
Posted By aroragaurav.84
Compare the two variable with if condition
Please help me with this:

I need to compare two values in if condition in shell script but its goes always to else condition:
TIME_CHECK=PM
TIME-CLOCK=PM

if [ $TIME_CHECK -eq $TIME-CLOCK ];...
10,196
Posted By aroragaurav.84
AIX saturn 3 5 00044BB7D600
AIX saturn 3 5 00044BB7D600
10,196
Posted By aroragaurav.84
I tried both but it gives me error: date...
I tried both but it gives me error:
date +%Y-%m-%d-%p -d yesterday
Error:date: 0551-402 Invalid character in date/time specification.
Usage: date [-u] [+"Field Descriptors"]

date --date '1 day...
10,196
Posted By aroragaurav.84
How to display yesterday Date in AIX
Hi,

I need help to display the yesterday date in format mentioned below:
2012-06-26-PMI tried this but it displays current date: `date +%Y-%m-%d-%p`
4,003
Posted By aroragaurav.84
it works very closely but gives all the response...
it works very closely but gives all the response say for error code=1035 and errorCode=1010 and etc but i need only Link_ConfID for errorCode=1008.I think u made it general for all "errorCode="
4,003
Posted By aroragaurav.84
Thanks but is it possible to refine it more like...
Thanks but is it possible to refine it more like instead of printing the whole Cancel request if we can just give the linkConfID=BTCCo2yvMB from the request and the whole error code response.

For...
4,003
Posted By aroragaurav.84
How to print the lines between the pattern using awk/grep/sed?
Hi,
I need a help to search a pattern and print the multiple lines between them.

Input file:
Tue May 29 12:30:33 EDT 2012:threadWebContainer :...
Showing results 1 to 25 of 25

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