10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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
2. Shell Programming and Scripting
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
3. Shell Programming and Scripting
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
4. Shell Programming and Scripting
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
5. Shell Programming and Scripting
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
6. Shell Programming and Scripting
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
7. UNIX for Advanced & Expert Users
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
8. Shell Programming and Scripting
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
9. UNIX for Dummies Questions & Answers
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
10. Shell Programming and Scripting
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