Large crout files created in /tmp folder


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Large crout files created in /tmp folder
# 1  
Old 09-30-2013
Large crout files created in /tmp folder

Hello All,
We are having a archiving script which runs every monday.
When ever the script runs it creates crout* files in /tmp folder.
This file appends till /tmp become 100% full.
We are facing this problem now very frequently.
We caanot delete this files,we have to kill the script.
when we kill the script the crout* file automaticaally gets deleted and file system too become normal.

Can you guys please help me regarding this.
What i need to do ,so that the script sholud not generate this crout* files?

All the suggestions are invited.

Thanks in advance.Smilie
# 2  
Old 09-30-2013
It sounds like you have three simple ways to fix your problem:
  1. Free up space on /tmp so your archiving script doesn't run out of space,
  2. stop running your archiving script, or
  3. fix your archiving script.
Without knowing what your script looks like, what kind of system you're using, how much free space there is in /tmp, and how much space is needed to archive the files you're archiving, I don't see how we can provide much help.
# 3  
Old 09-30-2013
The crout* files are created by cron, and deleted after execution.
They certainly collect output to be sent by mail.
You can supress the output by adding >/dev/null 2>&1 to the command in crontab.
# 4  
Old 09-30-2013
Large crout files created in /tmp folder

Hello ,
Thanks for your replies.

Can you please tell,do i need to put >/dev/null 2>& in the main script or do i need to put >/dev/null 2>&1 in the cron tab entry.

Thanks in Advance Smilie
# 5  
Old 09-30-2013
crontab entry.
# 6  
Old 09-30-2013
Thankyou very much....Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Request for Shell script to move files from Subfolder to Parent folder and delete sub folder

Hi Team, I am new to shell script and there is a requirement where files should be moved from Subfolder to parent folder. Eg: parent folder --> /Interface/data/test/IN Sub folder -->/Interface/data/test/IN/Invoice20180607233338 Subfolder will be always with timestamp... (6 Replies)
Discussion started by: srivarun15
6 Replies

2. Shell Programming and Scripting

Shell scripting for moving folder specific files into target directory of that country folder.

I need help to write shell script to copy files from one server to another server. Source Directory UAE(inside i have another folder Misc with files inside UAE folder).I have to copy this to another server UAE folder( Files should be copied to UAE folder and Misc files should be copied in target... (3 Replies)
Discussion started by: naresh2389
3 Replies

3. Shell Programming and Scripting

Get filelist in a folder which is created in last x hours

Hi , I am looking for some help in getting the list of files matching some pattern in a folder and those were created in last X hours. Please help. Thanks in advance. (1 Reply)
Discussion started by: Anupam_Halder
1 Replies

4. Shell Programming and Scripting

Need help in finishing a bash script for listing subfolder by size in a large folder

Greetings everyone. I have seen that you do wonders here. I have a large folder on a Ubuntu linux. Organization main folder, inside 20 000 subfolders, and inside those subolders many other like 5-6 folders and files. I am interested to create an output to a txt file under the bash... (2 Replies)
Discussion started by: ultimo
2 Replies

5. UNIX for Advanced & Expert Users

default size of a newly created folder

Hi all, In linux how to create a directory with specified size, so that it can be used only up to the mentioned size. Actually my question is, whether we can do directory quota in linux. mounting the directory in a partiton will do that, but do we have any other option... (1 Reply)
Discussion started by: anishkumarv
1 Replies

6. UNIX and Linux Applications

Zip command for large folder

I am trying to zip a folder, its size is more than 3 GB. I used below command zip -r foo middleware -x "*path*" This command fails every time with message "Filesize exceeded limit" Can some one help me how to over come this problem and zip the entire folder without splitting it. ... (2 Replies)
Discussion started by: ariram
2 Replies

7. UNIX for Dummies Questions & Answers

how to find folder size with created date

hi, please give me adivse .how to find the folder size with created created date . eg: i have directore and in that sub directoties and so on.. /home/mud/abc/dcb/ for this i want output like this path size date -------------------------------------------... (3 Replies)
Discussion started by: muddasani
3 Replies

8. Shell Programming and Scripting

Entering in to recent created folder

Hi, I had problem I have a script after each run, which creates a new folder under "testrun", I used to find recent createfolder by using ls -ltr in testrun folder. Is there any script which facilitates, going directly to recent createfolder under "testrun":confused: Plz help.. (7 Replies)
Discussion started by: prasad2k.java
7 Replies

9. Shell Programming and Scripting

Shell script to monitor tmp folder for uploads

Hello, We have been having some issues with our users overwriting files, and then not having a backup. What I would love to do, is create a shell script to monitor /tmp, for uploads, and make a copy of the file they are trying to upload before the upload finishes. Is this possible at all? (6 Replies)
Discussion started by: mrfr0g
6 Replies

10. UNIX for Dummies Questions & Answers

monitoring /tmp and /var/tmp for suspicous activity

Hello, does anyone have a script that can check the contents of the /tmp directory and for example e-mail the directory content if anything other than session files are present? Maybe there are better ways to monitor suspicous /tmp and /var/tmp activity, if so I'm listening :) (1 Reply)
Discussion started by: jamesbond
1 Replies
Login or Register to Ask a Question