Sponsored Content
Top Forums UNIX for Dummies Questions & Answers script to watch changes on a directory Post 302151303 by piltrafa on Friday 14th of December 2007 10:57:44 AM
Old 12-14-2007
Thanks

Thanks Porter for your help. It worked fine.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Watch for File on Windows share using Shell Script

Watch for File on Windows share using Shell Script I want to poll a particular file on a Windows shared drive using shell script and copy it to a Unix directory if present. Step wise execution: 1) Poll/watch for a file in the following location on Windows share:... (1 Reply)
Discussion started by: dharam_v
1 Replies

2. UNIX for Dummies Questions & Answers

Watch for File on Windows share using Shell Script

I want to poll a particular file on a Windows shared drive using shell script and copy it to a Unix directory if present. Step wise execution: 1) Poll/watch for a file in the following location on Windows share: (SRC_DIR=\\mum\dharmesh\research\ST_DXR_20080821 to DXR.xls) 2) If present,... (1 Reply)
Discussion started by: dharam_v
1 Replies

3. Shell Programming and Scripting

'watch' not interpreting escape codes in bash script

Hi there, I'm fairly new to bash scripting and already having some troubles. I'm making a script that can print some series of strings in colors based in the information of a file, for simplicity let's say it only does: #!/bin/bash printf "\eWhen you execute this in the command line it... (1 Reply)
Discussion started by: Arashi
1 Replies

4. UNIX for Advanced & Expert Users

Watch directory and move specific file extensions

Hi all, This is actually more for my lazyness then anything else, but I think others might find it useful to use as well. Basically this is what I am trying to achieve... In my ubuntu home dir under Downloads is where firefox saves everything by default, now I know that you can manually... (3 Replies)
Discussion started by: STOIE
3 Replies

5. Shell Programming and Scripting

KSH Script to watch log files for 2 strings

Hi all, How can I do a ksh script to watch a log file for 2 specific alarms that have one this string : "Connection Error" and the other one: "Failure in sending". I would like to watch for these two alarms in the log and then if each of them repeats for about 30 times to go kill 2 processes. ... (1 Reply)
Discussion started by: Pouchie1
1 Replies

6. Shell Programming and Scripting

Can I use a shell script for deleting chunks from a watch folder?

Hello I have a unique problem of needing to delete large files slowly off of an XSan. I was wondering if there is a script I could use to delete 100gb chunks of files and folders that get placed in to a watch folder, slowly so as not to disrupt the other users. I would like to use Automator in... (0 Replies)
Discussion started by: ajsoto
0 Replies

7. Shell Programming and Scripting

Use script to monitor command output question? (like Linux watch)

Hi I want to write a script, help me to monitor command output. This script like Linux "watch" command. Below is my script: # cat watch.sh #!/bin/bash while true do clear echo "command: $*" ( $* ) sleep 2 done Then I run this script below (2 Replies)
Discussion started by: nnnnnnine
2 Replies

8. Shell Programming and Scripting

Watch a directory for new files

In Solaris, and other distros without the "watch" command, use the following code watch for files added to a directory. #!/bin/bash while ; do watchdir=/var/tmp newfile=$watchdir/.newer touch $newfile find $watchdir -newer $newfile; touch -a -m $newfile; ... (10 Replies)
Discussion started by: os2mac
10 Replies

9. Shell Programming and Scripting

Shell scripting-I need a script which should watch a directory for a file with specific directory

I need a script which should watch a directory for a file with specific directory. If it finds a file in directory, it should search for few specific keyword in the file. if the keyword exists, it should trim string from specific column. The file should be moved to another directory and the a... (8 Replies)
Discussion started by: akashdeepak
8 Replies

10. Shell Programming and Scripting

Watch a directory for files with a pecific pattern

I dont know if this possible. I need to watch a directory and if any file gets appeneded with a particular entry say, nologin.php, we should get output of that. (1 Reply)
Discussion started by: anil510
1 Replies
Ru(3pm) 						User Contributed Perl Documentation						   Ru(3pm)

NAME
Lingua::Stem::Ru - Porter's stemming algorithm for Russian (KOI8-R only) SYNOPSIS
use Lingua::Stem::Ru; my $stems = Lingua::Stem::Ru::stem({ -words => $word_list_reference, -locale => 'ru', -exceptions => $exceptions_hash, }); my $stem = Lingua::Stem::Ru::stem_word( $word ); DESCRIPTION
This module applies the Porter Stemming Algorithm to its parameters, returning the stemmed words. The algorithm is implemented exactly as described in: http://snowball.tartarus.org/russian/stemmer.html The code is carefully crafted to work in conjunction with the Lingua::Stem module by Benjamin Franz. This stemmer is also based on the work of Aldo Capini, see Lingua::Stem::It. METHODS
stem({ -words => @words, -locale => 'ru', -exceptions => \%exceptions }); Stems a list of passed words. Returns an anonymous list reference to the stemmed words. Example: my $stemmed_words = Lingua::Stem::Ru::stem({ -words => @words, -locale => 'ru', -exceptions => \%exceptions, }); stem_word( $word ); Stems a single word and returns the stem directly. Example: my $stem = Lingua::Stem::Ru::stem_word( $word ); stem_caching({ -level => 0|1|2 }); Sets the level of stem caching. '0' means 'no caching'. This is the default level. '1' means 'cache per run'. This caches stemming results during a single call to 'stem'. '2' means 'cache indefinitely'. This caches stemming results until either the process exits or the 'clear_stem_cache' method is called. clear_stem_cache; Clears the cache of stemmed words EXPORT None by default. HISTORY
o 0.01 (2004-05-21) AUTHOR
Aleksandr Guidrevitch <pillgrim@mail.ru> SEE ALSO
Lingua::Stem COPYRIGHT
Copyright (C) 2003 by Aldo Calpini <dada@perl.it> Copyright (C) 2004 by Aleksandr Guidrevitch <pillgrim@mail.ru> This software may be freely copied and distributed under the same terms and conditions as Perl itself, either Perl version 5.8.3 or, at your option, any later version of Perl 5 you may have available.. perl v5.10.1 2007-10-23 Ru(3pm)
All times are GMT -4. The time now is 10:53 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy