Put together all those lines where rule is same, use find -o option to put together name rules using one find.
There is also meny different kind of finds, some days old or one year old. Think carefully how often you really need to run different kind of finds+rm. Make more than find script file, run once in month, run once in ...
Example something like this:
Thanks kshji, seems to be quite a good suggestion. If I group together all the search patterns having common purge period, I am left with only 13 find commands. If the find command with multiple search patterns also run for approximately 22-25 mins, your logic would drastically reduce the execution time. Let me try it and post a reply.
One quick question, may I precede using "-type f" before "-name"
Hi all,
I wrote this shell script to validate filed numbers for input file. But it take forever to complete validation on a file. The average speed is like 9mins/MB.
Can anyone tell me how to improve the performance of a shell script?
Thanks (12 Replies)
Hi peeps,
We are having around 60 users.
The time set to retrieve the mail is 300 sec.
But it's taking around 1 hour to deliver mails.
I am using debian sarge 3.1.
any clues?
And how it will affect if I decrease the time?
My machine has got 1 p4 3.0 GHZ processor and 1 GB ram.
The home... (2 Replies)
I'm having a bit of a login performance issue.. wondering if anyone has any ideas where I might look.
Here's the scenario...
Linux Red Hat ES 4 update 5
regardless of where I login from (ssh or on the text console) after providing the password the system seems to pause for between 30... (4 Replies)
grep -f taking long time to compare for big files, any alternate for fast check
I am using grep -f file1 file2 to check - to ckeck dups/common rows prsents. But my files contains file1 contains 5gb and file 2 contains 50 mb and its taking such a long time to compare the files.
Do we have any... (10 Replies)
Hi ,
We have 20 jobs are scheduled.
In that one of our job is taking long time ,it's not completing.
If we are not terminating it's running infinity time actually the job completion time is 5 minutes.
The job is deleting some records from the table and two insert statements and one select... (7 Replies)
Dear All,
OS = Solaris 5.10
Hardware Sun Fire T2000 with 1 Ghz quode core
We have oracle application 11i with 10g database. When ever i am trying to take cold backup of database with 55GB size its taking long time to finish. As the application is down nobody is using the server at all... (8 Replies)
Hi,
All the data are kept on Netapp using NFS. some directories are so fast when doing ls but few of them are slow. After doing few times, it becomes fast. Then again after few minutes, it becomes slow again. Can you advise what's going on?
This one directory I am very interested is giving... (3 Replies)
Hi,
I wish to check the return value for wget $url.
However, some urls are designed to take 45 minutes or more to return.
All i need to check if the URL can be reached or not using wget.
How can i get wget to return the value in a few seconds ? (8 Replies)
Hi,
I have a lengthy script which i have trimmed down for a test case as below.
more run.sh
#!/bin/bash
paths="allpath.txt"
while IFS= read -r loc
do
echo "Working on $loc"
startdir=$loc
find "$startdir" -type f \( ! -name "*.log*" ! -name "*.class*" \) -print |
while read file
do... (8 Replies)
Discussion started by: mohtashims
8 Replies
LEARN ABOUT DEBIAN
di-netboot-assistant
DI-NETBOOT-ASSISTANT(1) User Commands DI-NETBOOT-ASSISTANT(1)NAME
di-netboot-assistant - Debian-Installer netboot assistant
SYNOPSIS
di-netboot-assistant [-hv] [--verbose] [--offline] {[install image...] | [purge image...] | [rebuild-menu] } [--arch=arch]
DESCRIPTION
di-netboot-assistant is a simple tool to download and extract latest debian installer netboot images.
Unless the -h, --help, -v, or --version option is given, one of the commands below must be present.
install
install is followed by a repository name desired for installation. The repository name has to be one of those declared in /etc/di-
netboot-assistant/di-sources.list. The image will be installed/extracted in the default location (declared in /etc/di-netboot-
assistant/di-netboot-assistant.conf).
purge
purge will remove a previously installed d-i netboot image, according to the image name specified.
OPTIONS
rebuild-menu
rebuild-menu will rebuild the to level menu. It's only usefull if you have installed some client images that have such top level menu
(like i386, amd64 and ia64). This command takes no argument.
-h, --help Print this message and exit
-v, --version
Print script version and exit
--arch=arch
Specify the architecture you want to install or purge. The architecture you can use for the install action must be declared in
/etc/di-netboot-assistant/di-sources.list. The architecture you can use for purge action in one of those you previously installed !
The usable architectures can be listed by leaving --arch= empty. The default architecture is the current one (as reported by dpkg's
APT::Architecture).
--verbose
Verbose messages
--offline
Don't download the file (simply re-extract and build menu)
PROXY
di-netboot-assistant uses wget or curl to actually download the files. You can set the environnement variables accordingly.
AUTHOR
di-netboot-assistant was written by Frank Lin PIAT <fpiat@klabs.be>.
Franklin Piat May 2008 DI-NETBOOT-ASSISTANT(1)