Sponsored Content
Top Forums Shell Programming and Scripting Detecting incoming files without busy polling Post 302225342 by era on Friday 15th of August 2008 08:01:09 AM
Old 08-15-2008
Linux used to have something like FAM which would alert you when a file was altered. This is being replaced by other mechanisms which are slightly less platform-specific, but there is nothing which is stable and standard just yet. If yoiu have a dbus system, I think that includes this facility, but the name escapes me. There are discussions on this site about such systems so searching along the lines of fam and dbus might help you find stuff you like.
 

10 More Discussions You Might Find Interesting

1. Programming

Help - Polling Script

How do I write a shell script to perform polling just like what happens with Microsoft mail. i.e display an alert box. (1 Reply)
Discussion started by: brianmu
1 Replies

2. UNIX for Advanced & Expert Users

How to avoid polling???

Hi all, I have a directory where some process is keeping incremental/new log files. I need to code a program which will periodically poll this directory and if it founds a new file arrived then copy that new file to some other specific directory. We are OK with this polling approach. I just... (3 Replies)
Discussion started by: zing_foru
3 Replies

3. Shell Programming and Scripting

Script to number incoming files

Hey guys, I am working on a Cshell script and I am stuck on this one part. I need to be able to copy in files to my directory but give them different names so they don't overwrite each other. For example, my folder already contains FILE.1 I want my script to name the next file copied over... (5 Replies)
Discussion started by: hootdocta5
5 Replies

4. UNIX for Dummies Questions & Answers

Help: script to monitor incoming files

I have 20 or so files that are ftp'd each day to a particular directory. I want to create a script that will tell me if any of these files fails to arrive or if any additional files arrive. I'm thinking I'd have a list of file names that should arrive each day, and the script would check each days... (2 Replies)
Discussion started by: daveyc82
2 Replies

5. UNIX for Advanced & Expert Users

Filesystem mystery: disks are not busy on one machine, very busy on a similar box

Hi, We have a filesystem mystery on our hands. Given: 2 machines, A and Aa. Machine Aa is the problem machine. Machine A is running Ubuntu, kernel 2.6.22.9 #1 SMP Wed Feb 20 08:46:16 CST 2008 x86_64 GNU/Linux. Machine Aa is running RHEL5.3, kernel 2.6.18-128.el5 #1 SMP Wed Dec 17 11:41:38... (2 Replies)
Discussion started by: mschwage
2 Replies

6. Shell Programming and Scripting

Unix Polling agent

I plan to run a script which will run in background and at predefined times send mails to user . I dont have acees to autosys/ Cron / at jobs My loop works like this while (true) do getx_time=`date +%H%M` if ; then script1.sh mail_sent_flag=1 elif ; then script2.sh... (1 Reply)
Discussion started by: ultimatix
1 Replies

7. Programming

Db polling...

Hi! Im trying to make a program that polls a mysqlDB every 5 minutes. the poll checks a scheduletable in the dB and exicutes a function if there was a "go" in the scheduletable, and if it retrives a "no go" from the table it should just wait for another 5 minutes before re polling the DB, ... (1 Reply)
Discussion started by: karlblau
1 Replies

8. HP-UX

Polling target on Serviceguard

Hi Guys, we are planning to enable polling target on our SG in reference to this link MC/ServiceGuard: Subnet Goes Down when one of the Cluster Node is Down - HP Customer Care (United States - English) since our server is already in production can we apply the changes with ex. "cmapplyconf... (1 Reply)
Discussion started by: batas
1 Replies

9. Shell Programming and Scripting

Detecting new entries in log files

Hello All, I have a script that checks a log file. This will be checked periodically lets say every 5 minutes. I need to get new entries and process these new entries What do you think is the best strategy here? all i can think of currently is to backup the old file and do diff. But future... (9 Replies)
Discussion started by: ryandegreat25
9 Replies

10. Shell Programming and Scripting

Polling file

HI I need some help on this below one Have summuary file coming on daily basis with list of file names and count ,if the summuary file not exist ,pool it for every 5 mins till it arrives .Once arrived remove first and last line from the file and check all the files in respective director all... (12 Replies)
Discussion started by: mohan705
12 Replies
dbus-monitor(1) 						   User Commands						   dbus-monitor(1)

NAME
dbus-monitor - debug probe to print message bus messages SYNOPSIS
dbus-monitor [--system | --session] [--profile | --monitor] [watch_expressions] DESCRIPTION
The dbus-monitor command is used to monitor messages going through a D-Bus message bus. There are two standard message buses: o systemwide message bus - Disabled and not supported on Solaris, but installed on many systems as the "messagebus" init service. o per-user-login-session message bus - Enabled and supported on Solaris, and started each time a user logs in. The --system and --session options direct dbus-monitor to monitor the system or session buses respectively. If neither is specified, dbus- monitor monitors the session bus. dbus-monitor has two different output modes, the 'classic'-style monitoring mode and profiling mode. The profiling format is a compact for- mat with a single line per message and microsecond-resolution timing information. The --profile and --monitor options select the profiling and monitoring output format respectively. If neither is specified, dbus-monitor uses the monitoring output format. The message bus configuration may keep dbus-monitor from seeing all messages, especially if you run the monitor as a non-root user. See http://www.freedesktop.org/software/dbus/ for more information. OPTIONS
The following options are supported: --monitor Use the monitoring output format (this is the default). --profile Use the profiling output format. --session Monitor the session message bus (this is the default). --system Monitor the system message bus. The system bus is disabled and unsupported on Solaris. OPERANDS
The following operands are supported: watch_expressions In order to display the messages you are interested in, you should specify a set of watch_expressions as you would expect to be passed to the dbus_bus_add_watch function. EXIT STATUS
The following exit values are returned: 0 Application exited successfully >0 Application exited with failure FILES
The following files are used by this application: /usr/bin/dbus-monitor Executable for dbus-monitor ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWdbus | +-----------------------------+-----------------------------+ |Interface stability |Volatile | +-----------------------------+-----------------------------+ SEE ALSO
dbus-cleanup-sockets(1), dbus-daemon(1), dbus-launch(1), dbus-send(1), dbus-uuidgen(1), libdbus-glib-1(3), attributes(5) NOTES
For authorship information refer to http://www.freedesktop.org/software/dbus/doc/AUTHORS. Updated by Brian Cameron, Sun Microsystems Inc., 2007. dbus-monitor was written by Philip Blundell. The profiling output mode was added by Olli Salli. Please send bug reports to the D-Bus mailing list or bug tracker, see http://www.freedesktop.org/software/dbus/ SunOS 5.11 19 Nov 2007 dbus-monitor(1)
All times are GMT -4. The time now is 11:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy