Sponsored Content
Top Forums Shell Programming and Scripting Need script to remove millions of tmp files in /html/cache/ directory Post 302519437 by andymc1 on Wednesday 4th of May 2011 03:07:49 AM
Old 05-04-2011
Basically that command will overload the vps and hang it. Smilie

What I was looking for was something that could balance the server load and remove those files.

Thanks Smilie
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Script to remove all empty files within the directory structure?

Hi I need to write a shell script which basically searches for all the empty files within the directory structure, lists them before asking the user to confirm if they would like to delete them. If the user deletes the file then a notice would appear confirming the file is deleted. I've be... (5 Replies)
Discussion started by: cat123
5 Replies

2. Shell Programming and Scripting

perl script related /tmp directory

hi friends. i have to make a perl script to generate all users and space(how much they are using) and files(how much files they have) and time(how much time that accessed /tmp buffer) from /tmp directory. please provide me guidance. regards pranesh b. mishra (2 Replies)
Discussion started by: praneshmishra08
2 Replies

3. Web Development

html link to images in /tmp directory

Because of permission issues, I need to link to images in my web page which are stored in /tmp which of course is located in the root directory but my actual html page is much further down in another directory. I thought the the following code should work, but the image comes up as a broken link:... (2 Replies)
Discussion started by: Solerous
2 Replies

4. Shell Programming and Scripting

Script That Can navigate to 3 differents directory & remove files under them

Hi I am Trying to Write a script that can goto 4 different directorys on the server & remove the Files older then 30 days ?? /logs logs1 logs2 logs3 Now I need to remove files under logs1 logs2 logs3 which are older then 30 days whose name stat 'sit' , 'mig','bld' . in... (3 Replies)
Discussion started by: Beginner123
3 Replies

5. Shell Programming and Scripting

How to remove urls from html files

Does anybody know how to remove all urls from html files? all urls are links with anchor texts in the form of <a href="http://www.anydomain.com">ANCHOR</a> they may start with www or not. Goal is to delete all urls and keep the ANCHOR text and if possible to change tags around anchor to... (2 Replies)
Discussion started by: georgi58
2 Replies

6. Shell Programming and Scripting

Script to search for a character in files in a Directory & remove it

Hi All, Am new to both Unix & this Forum - Need some help on a script that I am trying to write: In a Directory i have few text files which might or might not contain some text that I am trying to find. Once that text is found in any of the files, it needs to be removed from the file ... (6 Replies)
Discussion started by: rituparna_gupta
6 Replies

7. UNIX for Dummies Questions & Answers

Redirecting tmp files of SORT into different directory

Hey Guys, I am facing an annoying scenario, fewer times when I execute the sort command, it throws out on error saying that "No Space on available on /var/tmp/<temp file name>. May be it is set to /var/tmp directory. I was wondering, if I cant redirect the temporary file creation to any other... (3 Replies)
Discussion started by: abhisheksunkari
3 Replies

8. UNIX for Dummies Questions & Answers

Script to remove zip files from a directory

Hi Folks, There is a job which generates a .zip files every day at /usr/app/generated directory , now please advise for the script that will delete this zip files permanently.but while deleting it should make sure that it will not delete the last two days recently generated zip files and this... (1 Reply)
Discussion started by: punpun66
1 Replies

9. Shell Programming and Scripting

Parse multiple html files in directory

I have downloaded source code for 97 files using: wget -x -i link.txt then run a rename loop: for file in * do mv $file $file.txt done to keep the html tags but make the file a text that can be parsed. In each of the 97 txt files the gene # is variable, but the gene is associated... (15 Replies)
Discussion started by: cmccabe
15 Replies

10. Shell Programming and Scripting

Shell script to find the GB files in /tmp directory in remote server

Hi, i need help on shell scripting. Main intention of the script is step 1: ssh to remote server Step 2: cd /tmp in remote server Step 3: in tmp i want to grep only files and directories which are in GB sizes All the servers list file is - tmpsrv.txt vi tmpsrv.txt ... (17 Replies)
Discussion started by: kumar85shiv
17 Replies
Dancer::Session::YAML(3pm)				User Contributed Perl Documentation				Dancer::Session::YAML(3pm)

NAME
Dancer::Session::YAML - YAML-file-based session backend for Dancer DESCRIPTION
This module implements a session engine based on YAML files. Session are stored in a session_dir as YAML files. The idea behind this module was to provide a transparent session storage for the developer. This backend is intended to be used in development environments, when looking inside a session can be useful. It's not recommended to use this session engine in production environments. CONFIGURATION
The setting session should be set to "YAML" in order to use this session engine in a Dancer application. Files will be stored to the value of the setting "session_dir", whose default value is "appdir/sessions". Here is an example configuration that use this session engine and stores session files in /tmp/dancer-sessions session: "YAML" session_dir: "/tmp/dancer-sessions" METHODS
reset to avoid checking if the sessions directory exists everytime a new session is created, this module maintains a cache of session directories it has already created. "reset" wipes this cache out, forcing a test for existence of the sessions directory next time a session is created. It takes no argument. This is particulary useful if you want to remove the sessions directory on the system where your app is running, but you want this session engine to continue to work without having to restart your application. DEPENDENCY
This module depends on YAML. AUTHOR
This module has been written by Alexis Sukrieh, see the AUTHORS file for details. SEE ALSO
See Dancer::Session for details about session usage in route handlers. COPYRIGHT
This module is copyright (c) 2009 Alexis Sukrieh <sukria@sukria.net> LICENSE
This module is free software and is released under the same terms as Perl itself. perl v5.14.2 2011-11-30 Dancer::Session::YAML(3pm)
All times are GMT -4. The time now is 02:05 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy