Sort : Write Error occured while merging


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Sort : Write Error occured while merging
# 1  
Old 10-19-2012
Error Sort : Write Error occured while merging

Dear Friends,

I am sorting the file which contain 55Lakhs of records while Sorting i am facing issues

Code:
 
Sort :0653-657 Write Error occured while merging

Could you please any one tell me how to overcome this problem

Thanks in advance
# 2  
Old 10-19-2012
Hi dude,

I think this is going to be a temporary directory space issue.
Check with the below option.

Code:
sort -T /tmp/dir ....

Cheers,
Ranga Smilie
This User Gave Thanks to rangarasan For This Post:
# 3  
Old 10-19-2012
Hi

If the environment variable `TMPDIR' is set, `sort' uses its value
as the directory for temporary files instead of `/tmp'. The
`--temporary-directory' (`-T') option in turn overrides the environment
variable.
As Ranga mentioned -T try it

Thank you,
Senthil
This User Gave Thanks to senthilkumark For This Post:
# 4  
Old 10-19-2012
@Ranga,Senthil . Thanks for the reply. So i need to use

Code:
 
sort -T /tmp/dir Filename.txt

Is the above command is correct ?
# 5  
Old 10-19-2012
You are right dude Smilie
This User Gave Thanks to rangarasan For This Post:
# 6  
Old 10-19-2012
@thanks ranga Smilie
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Count events occured in the same second in awk

Hello to all in forum, I need to count how many events happens within each second for 01 Aug 2013.(because in the sample appears records for 01 Aug and 02 Aug). The output for the input below should be: Desired Output: --> 2 Records --> 1 Record --> 3 Records Input: DEBUG... (5 Replies)
Discussion started by: Ophiuchus
5 Replies

2. Homework & Coursework Questions

Shell script calling Perl function, sort and find data, write to new files

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: I must write a shell script that calls two external Perl functions--one of which sorts the data in a file, and... (6 Replies)
Discussion started by: kowit010
6 Replies

3. Programming

Some error with number of keyboard inputs occured with this code for reversing a string..

i used a two-way linked list "node" for the code:: #include<stdio.h> #include<malloc.h> void insert(); void reverse(); struct node { char c; struct node *next; struct node *back; }*start=NULL; int main() { int n,i; (4 Replies)
Discussion started by: mscoder
4 Replies

4. HP-UX

When MTU changed, system panic occured

Hello I have some hpux 11.23/31 systems ,and some other (linux,solaris) I know if i want change the mtu size ,need use lanadmin. But:if i try on 11.23 : ifconfig lan1 mtu 8000,system paniced. If i try on 11.31 :ifconfig lan1 mtu 8000,remove ip address from interface. Ithink is not a best... (1 Reply)
Discussion started by: zoldkalap
1 Replies

5. Shell Programming and Scripting

sort: 0653-657 A write error occurred while sorting.

Hi I am trying to sort a file of 88075743B size. I am doing some processing on the file and after the processing is done; I get 2 files temp1 and temp2. I need to combine both these files as one and this final file should be sorted on fields 1 and 2. Space is the delimiter between fields. Record... (2 Replies)
Discussion started by: diksha2207
2 Replies

6. UNIX for Advanced & Expert Users

Error occured while running a script

Hi All, In my application, I'm getting an error as type mismatch Let me now explain the scenario, I ran a shell script which calls some other scripts. All these scripts uses the environment variables. Take for example, this script uses a variable 'PathDir'. I initiallized the value to... (2 Replies)
Discussion started by: iamgeethuj
2 Replies

7. UNIX for Advanced & Expert Users

FATAL:exception occured with pthread_exit()

We had written an application in which we create worker thread. So the main thread will create the worker thread. After some time the child thread(Worker thread) will call pthread_exit(). This function was written in try{} and there occured an Exception and is handled in catch(...)... (0 Replies)
Discussion started by: platso
0 Replies

8. Shell Programming and Scripting

how to trap unix signal if the process killed/interupt occured in bash...

hey champs, I have a process running.......i have to catch/trap the signal when the process is being interupted/killed (kill -9 pid) option...... how can i achieve the same thru my process........ let my process is a.sh and it supposed to take 13 mins to complete, but due to some problem ,... (15 Replies)
Discussion started by: manas_ranjan
15 Replies

9. UNIX for Dummies Questions & Answers

finding no of counts the words occured

hi, cud u help me to find this. i hav 2 files. file1 has data as "ARUN ARUN is from Australia Arun likes America etc.. ARUN ARUN " file2 has "ARUN Australia America" i... (5 Replies)
Discussion started by: arunsubbhian
5 Replies

10. UNIX for Dummies Questions & Answers

"Error 124 occured"?????

Error 124 occured... Hey everyone,i use DigitalUnix 4.0...does anyone know what kind of error is that??? Let me tell u the whole story...once upon a time(yesterday) i tried to install gearsoftware for a Plextor CD writer...i'm new in Unix and it took me a while but i made it... Before i... (1 Reply)
Discussion started by: Petza
1 Replies
Login or Register to Ask a Question