Search Results

Search: Posts Made By: usrrenny
6,202
Posted By usrrenny
Thanks all for replying. I have to use...
Thanks all for replying.

I have to use :$(can't use any other code for suppress output).
Is there a way to get return code while using :$
6,202
Posted By usrrenny
Return Code to shell script
Hi, I need to send the return code from a script to the parent shell script.
But i am suppressing outputs while calling the child script.
Is there any way still to get the return code from the...
21,755
Posted By usrrenny
Mailx command to include sender address
Hi,
I m using mailx to send email. I am using

sender=server name(display name)
echo "body" | mailx -s "subject" -b "bcc address" "to address" -- -f "$sender".
I should get email with sender as...
4,153
Posted By usrrenny
Hi All, Thanks a ton for all your messages. I am...
Hi All, Thanks a ton for all your messages. I am able to get the start time & end time out of the strings. Now I need to subtract total_time=end_time-start_time. But seems both start_time & end_time...
4,708
Posted By usrrenny
Hi, I am not trying any input. I am getting the...
Hi,
I am not trying any input. I am getting the specified error on the .logon statement. I removed the
> /dev/null 2>&1 < next to the fexp. so it started running. but I am not getting any output,...
4,708
Posted By usrrenny
Teradata fastexport in ksh
Hi, I am trying to use Teradata fastexport in ksh, but getting error as below


temp1.ksh: line 7: syntax error at line 10: `newline' unexpected
below is my code:


#!/bin/ksh

...
4,153
Posted By usrrenny
Hi Don, From "From the above" i meant Thu...
Hi Don,

From "From the above" i meant Thu Jan 29 15:01:17 CST 2015.
i am using ksh.
timezones are always US timezones(CST or EST).Range of years should be 2010 to 2030.
Yes I am looking for 24...
4,153
Posted By usrrenny
Hi All, Thanks for replying. I tried Bigsanch's...
Hi All, Thanks for replying. I tried Bigsanch's code modified by Don(#12). It worked fine for me. However need to do a thorough testing before implementing.

Also my original code wrked after...
4,153
Posted By usrrenny
Hi, I tried the below. while...
Hi,

I tried the below.

while read line
do
if echo "$line" | grep -q "started at"
then
st= ${line#*started at}
echo $st
fi
done < $load_time

but getting output as
...
4,153
Posted By usrrenny
Date substring from a string
Hi, I have 2 statements in a file

a.sh start time is Fri Jan 9 17:17:33 CST 2015
a.sh end time is Fri Jan 9 17:47:33 CST 2015

I am required to get only the time out of it. like

...
773
Posted By usrrenny
No. I pasted my code. I have not used "-cmin n"...
No. I pasted my code. I have not used "-cmin n" in my code.
773
Posted By usrrenny
Search files in UNIX based on execution
Hi, I have a UNIX script to fetch all the files for current day. so I am using code--
"files=($(find x.lst -maxdepth 1 -type f -daystart -mtime -1))". But this is not going to work if my job starts...
4,319
Posted By usrrenny
Hi DGPickett, Thanks for your suggestion. I will...
Hi DGPickett, Thanks for your suggestion. I will plan to use csv in stead of txt as enhancement.
Thanks a lot for the help i received.:b:
4,319
Posted By usrrenny
Hi Chubler_XL, Thanks a ton. You are the Unix...
Hi Chubler_XL, Thanks a ton. You are the Unix Master. I am able to get desired result with your suggestion. Thanks again.:b:
4,319
Posted By usrrenny
Hi Chubler_XL, Yes the data still comes in one...
Hi Chubler_XL, Yes the data still comes in one line. I am attaching the file in the mail, its not body.
below is the code.


printf " %s %s\n \n " "${File[i]}" "${Member[i]}" >> temp.txt...
4,319
Posted By usrrenny
Hi Chubler_XL, i tried with printf also..its not...
Hi Chubler_XL, i tried with printf also..its not working.
i tried the below:

printf "%s %s \n \n " "${File[i]}" "${Member[i]}" >> temp.txt
4,319
Posted By usrrenny
Hi Chubler_XL, I am trying the below code, but...
Hi Chubler_XL, I am trying the below code, but this doesnt seem to work.

echo " %s %s\n \n" "${File[i]}" "${Member[i]}" >> temp.txt
4,319
Posted By usrrenny
Thanks much Chubler_XL. I was able to get the...
Thanks much Chubler_XL. I was able to get the desired result.Now i am trying to put a header to the output file and also insert a new line character after each record like below. I can see the same...
4,319
Posted By usrrenny
Thanks Don. But my requirement was a,b,c are...
Thanks Don. But my requirement was
a,b,c are members i found from a set of files say 1.txt, 2.txt, 3.txt respectively. so i am storing a,b,c in array and showing tht in file. i want my array/file...
4,319
Posted By usrrenny
Hi DGPickett, Now i am able to write the array to...
Hi DGPickett, Now i am able to write the array to a file and send the file as attachment in mail. I have one column in my file coz i am writing one dimensional array to file. i know we cant make...
4,319
Posted By usrrenny
Hi DGPickett, I wanted to extract one string...
Hi DGPickett,
I wanted to extract one string from all the records of the file. I am able to achieve that now. Now i can write the values to array. now i need to send this by mail. Is it possible to...
4,319
Posted By usrrenny
Thanks Chubler_XL for ur reply. I tried the...
Thanks Chubler_XL for ur reply. I tried the option u suggested. But its hanging. moreover i want the sed statement inside the while loop. so when i tried the below, it didnt work.
Pls note that,...
4,319
Posted By usrrenny
File names as array element in ksh
Hi, I have an ksh array(ARR). the elements to the array are file names. i need to go to each file in the array and manipulate the records.

for name in ${files[@]}; do ---this loop is for all...
1,789
Posted By usrrenny
scp Automation
Hi, I have a requirement to automate SCP command. I have to write the scp command in server1 to copy file from server2 and paste it in server3. I will be passing server2 and server3 as variables. Pls...
Showing results 1 to 24 of 24

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