06-08-2010
Thanks for the input. i changed few things and it works
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have files as below:
erf100.sh
erf101.sh
erf102.sh
erf103.sh
erf104.sh
erf105.sh
I can easily change permission of all files to 755 by issuing command below:
chmod 755 erf*.sh;
how do i change permission of all files but excluding file erf102.sh?
thanks
best regards (2 Replies)
Discussion started by: khchong
2 Replies
2. Shell Programming and Scripting
Hi
I have a file in the following format:
4135 f4135acc: 39798 rmtdb: 0 /t1/data/f4135acc.dta
4135 f4135pdb: 39795 rmtdb: 0 /bb/data/f4135pdb.dta
4135 p4135eng: 0 rmtdb: 0 /bb/bin/p4135eng
4135 r4135eng: 14142 rmtdb: 0 ... (6 Replies)
Discussion started by: aoussenko
6 Replies
3. Shell Programming and Scripting
hi , i am very new to perl . scriptting.. pllease can any one help me ...pleaseeeeeee
i ll have a file which look likes
123 |something |567
456 |welcome |789
457 |inboxpost |790
.
.
123 |something |567
i have to execute all the lines in the file except the first and the... (14 Replies)
Discussion started by: vishwakar
14 Replies
4. Ubuntu
I am familiar with using tar and exclude/include files:
tar zcf backup.dirs.tgz --files-from=include.mydirs --exclude-from=exclude.mydirs --no-recursion
but was wondering if I could use find in the same way. I know that you can just specify the directories to exclude but my list is... (2 Replies)
Discussion started by: metallica1973
2 Replies
5. Shell Programming and Scripting
Hi Gurus.
I have a directory and i receive many files with extension .log. I processed the file as i get it. i want to process all the files except one which i know i don't want to process.
cd /backup/temp/rajesh/PACS #--- directory , under this i have below files... (1 Reply)
Discussion started by: guddu_12
1 Replies
6. UNIX for Dummies Questions & Answers
hi,
i am trying to use a exclude file to exclude some file directories while making a tar archive. This is my command:
tar -pcvf orahome10gR2.tar.gz db_1 -X /home/oracle/excludeFile.txt /home/oracle/
when i execute it, it seem to be tar-ing. But once is done, i cd to /home/oracle and could... (2 Replies)
Discussion started by: redologger
2 Replies
7. Shell Programming and Scripting
Hi,
I want to exclude the users below 500 in the password file with the below script.
#!/bin/bash
# get date in dd-mm-yyyy format
NOW=$(date +"%d-%m-%Y")
exec > "/root/SYSINFO/User_details_`uname -n`_$NOW.txt"
cut -d: -f1 /etc/passwd > /tmp/pass.txt && for i in `cat /tmp/pass.txt`;... (2 Replies)
Discussion started by: gsiva
2 Replies
8. Shell Programming and Scripting
Hello,
I have a list of patterns which I'd like to exclude from a file. I tried to do
while read line
do
grep -v $line file >> new.file
done < mylist
But obviously it won't work. It only works for just grep. I know I can do:
grep -Ev 'pattern1|pattern2|...' myfile
but my... (7 Replies)
Discussion started by: coppuca
7 Replies
9. Shell Programming and Scripting
Hello everyone,
I try to find folders older than 3 years and display them, but excluding some directories, the below code does NOT exclude listed directories:
find . -maxdepth 3 -mtime +1095 -type d -exec ls -l {} \; | grep -vFf oldExclude >> older
oldExclude
Folder1/
Folder2/... (7 Replies)
Discussion started by: Abu Rayane
7 Replies
10. UNIX for Beginners Questions & Answers
hallo,
yould you guys help me?
im using bash script
i have file getnumber.csv
cat getnumber.csv
234198
654639
eht4v4
453nbddme
43
455fr
i try this
cat getnumber.csv | sed 's/*//g'
but the result is :
234198 (5 Replies)
Discussion started by: kivale
5 Replies
LEARN ABOUT MOJAVE
apache::reload
Apache::Reload(3) User Contributed Perl Documentation Apache::Reload(3)
NAME
Apache::Reload - Reload changed modules
SYNOPSIS
In httpd.conf:
PerlInitHandler Apache::Reload
PerlSetVar ReloadAll Off
Then your module:
package My::Apache::Module;
use Apache::Reload;
sub handler { ... }
1;
DESCRIPTION
This module is two things. First it is an adaptation of Randal Schwartz's Stonehenge::Reload module that attempts to be a little more
intuitive and makes the usage easier. Stonehenge::Reload was written by Randal to make specific modules reload themselves when they
changed. Unlike Apache::StatINC, Stonehenge::Reload only checked the change time of modules that registered themselves with
Stonehenge::Reload, thus reducing stat() calls. Apache::Reload also offers the exact same functionality as Apache::StatINC, and is thus
designed to be a drop-in replacement. Apache::Reload only checks modules that register themselves with Apache::Reload if you explicitly
turn off the StatINC emulation method (see below). Like Apache::StatINC, Apache::Reload must be installed as an Init Handler.
StatINC Replacement
To use as a StatINC replacement, simply add the following configuration to your httpd.conf:
PerlInitHandler Apache::Reload
Register Modules Implicitly
To only reload modules that have registered with Apache::Reload, add the following to the httpd.conf:
PerlInitHandler Apache::Reload
PerlSetVar ReloadAll Off
# ReloadAll defaults to On
Then any modules with the line:
use Apache::Reload;
Will be reloaded when they change.
Register Modules Explicitly
You can also register modules explicitly in your httpd.conf file that you want to be reloaded on change:
PerlInitHandler Apache::Reload
PerlSetVar ReloadAll Off
PerlSetVar ReloadModules "My::Foo My::Bar Foo::Bar::Test"
Note that these are split on whitespace, but the module list must be in quotes, otherwise Apache tries to parse the parameter list.
Un-Register Modules Explicitly
If ReloadAll is set to On, then you can explicity force a module not to be reloaded with
no Apache::Reload;
A warning will appear in the error log that the file has changed, but will not be reloaded
Special "Touch" File
You can also set a file that you can touch() that causes the reloads to be performed. If you set this, and don't touch() the file, the
reloads don't happen. This can be a great boon in a live environment:
PerlSetVar ReloadTouchFile /tmp/reload_modules
Now when you're happy with your changes, simply go to the command line and type:
touch /tmp/reload_modules
And your modules will be magically reloaded on the next request. This option works in both StatINC emulation mode and the registered
modules mode.
PSUEDOHASHES
The short summary of this is: Don't use psuedohashes. Use an array with constant indexes. Its faster in the general case, its more
guaranteed, and generally, it works.
The long summary is that I've done some work to get this working with modules that use psuedo hashes, but its still broken in the case of a
single module that contains multiple packages that all use psuedohashes.
So don't do that.
AUTHOR
Matt Sergeant, matt@sergeant.org
MAINTAINERS
the mod_perl developers, dev@perl.apache.org
SEE ALSO
Apache::StatINC, Stonehenge::Reload
perl v5.18.2 2015-06-18 Apache::Reload(3)