Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ftpwatch(8) [debian man page]

FTPWATCH(8)						      System Manager's Manual						       FTPWATCH(8)

NAME
ftpwatch - Notifies you of changes on remote ftp servers SYNOPSIS
ftpwatch DESCRIPTION
ftpwatch is a program intended to be run as a cron job. Every user who wants to use it should install it into his crontab file. That is add something like: 47 5 * * 7 /usr/bin/ftpwatch The user should then create a .ftpwatchrc file. If one is found the specifed files and directories in that file will be dired, and the result is stored as separate files in a .ftpwatch directory i the home directory. diff(1) is invoked to find any changes since last run. If any are found, the output of diff is mailed to the user. OPTIONS
-d<opt> passes the options in <opt> to diff when invoked to generate the change-repport sent to the user. -p run ftp in passive mode CONFIGURATION FILES
Each user can place a .ftpwatchrc file in there home directories, listing the files or directories they are intrested in. The format is simpel. Each line of the file is of the following type: <Host>:<File> Where <Host> is the hostname of the ftp server and <File> is the file or directory to watch. If you instead want to watch an entire direc- tory structure recoursly you can add an R to the config line of the dir whoes subdirs you are intresed in, like this: <Host>:R:<File> AUTHOR
Hakan Ardo <hakan@debian.org> 7 Januari 1997 FTPWATCH(8)

Check Out this Related Man Page

cron(8) 						      System Manager's Manual							   cron(8)

NAME
cron - The system clock daemon SYNOPSIS
/usr/sbin/cron DESCRIPTION
The cron daemon runs shell commands at specified dates and times. Commands that are to run according to a regular or periodic schedule are found within the crontab files. Commands that are to run once only are found within the at files. You submit crontab and at file entries by using the crontab and at commands. Because the cron process exits only when killed or when the system stops, only one cron daemon should exist on the system at any given time. Normally, you start the cron daemon from within a run command file. During process initialization and when cron detects a change, it examines the crontab and at files. This strategy reduces the overhead of checking for new or changed files at regularly scheduled intervals. The cron command creates a log of its activities. The cron daemon must be started from the system startup scripts because it must begin execution without a login user ID set. The cron daemon starts each job with the following process attributes stored with the job by the invoking process: Login user ID Effective and real user IDs Effective and real group IDs Supplementary groups It also establishes the following attributes from the authentication profile of the account associated with the login user ID of the invok- ing process: Audit control and disposition masks Kernel authorizations DIAGNOSTICS
The at and batch programs will refuse to accept jobs submitted from processes whose login user ID is different from the real user ID. FILES
Specifies the command path. Main cron directory Directory containing the crontab files. List of allowed users. List of denied users His- tory information for cron Queue description file for at, batch, and cron RELATED INFORMATION
Commands: at(1), crontab(1), rc0(8), rc2(8), rc3(8) Files: queuedefs(4) delim off cron(8)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

An interesting problem

hi!, here is an interesting problem ..... I ftp a file named " my first file.doc" from windows to my HP workstation. Ftp is succesful. The file appears with the same name in my home directory.. But now how do I open this file?? while using Vi or More or other editor, they take only the... (5 Replies)
Discussion started by: jyotipg
5 Replies

2. UNIX for Dummies Questions & Answers

Send a file by ftp

Hello! Is there any chance that this single line command execute properly on aix? I have 0 knowledge on that platform!! echo "User_FTP \nFTP_PASSWORD \nbin \ncd cad \nput /opt/lotus/office/general/Agent.csv \nquit" | ftp abc0.cie.com If not, any other suggestion? A single line command... (4 Replies)
Discussion started by: jr_provost
4 Replies

3. UNIX for Dummies Questions & Answers

crontab question

Why does this cron entry do nothing? It works interactively. 58 23 * * * mydate=`date '+%Y%m%d'`;mv /opt/home/user/file /opt/home/user/file_$mydate (5 Replies)
Discussion started by: steelrose
5 Replies

4. UNIX for Dummies Questions & Answers

Help on ps

Hello, Can some one help me to find the directory from which the specified process is running. I need to find the directory of the process (run.csh). For ex: If we have 5 directories /usr/userA/run.csh /usr/userB/run.csh etc... Any help is very much appreciated. (8 Replies)
Discussion started by: Aceform
8 Replies

5. Shell Programming and Scripting

How do I prevent cron from returning errors on a file not found?

find: /home/Upload/*: No such file or directory I am getting a find error when I run for FILE in `find /home/Upload/* -prune -type f -newer TIMEFILE` do I need to run this job every 10 minutes to upload any new files that were added. Is there an easy way to prevent this? Thanks (6 Replies)
Discussion started by: goodmis
6 Replies

6. UNIX for Advanced & Expert Users

ftp files with directories

hi, i am trying to ftp files from one server to another. how do i do it with all directories.(i mean i need the same directory structure) mget -r * doesnt seem to work properly..pls help. (5 Replies)
Discussion started by: dnat
5 Replies

7. Shell Programming and Scripting

Script for parsing directories one level and finding directories older than n days

Hello all, Here's the deal...I have one directory with many subdirs and files. What I want to find out is who is keeping old files and directories...say files and dirs that they didn't use since a number of n days, only one level under the initial dir. Output to a file. A script for... (5 Replies)
Discussion started by: ejianu
5 Replies

8. Shell Programming and Scripting

Cronjob for recognizing changes and/or new files in specific directory

Hey Guys, is there a way to create a cronjob to watch over all changes in a specific directory, for example /home/user and send them, if there are any changes, to a server:confused: Thanks Sebi0815 (4 Replies)
Discussion started by: Sebi0815
4 Replies

9. Shell Programming and Scripting

find string from multiple dir and redirect to new files

Hi, I am new to script and I want find one string from multiple files in diff directories and put that out put to new file. Like I have A,B & C directories and each has multiple files but one file is unic in all the directories like COMM.txt Now I want write script to find the string... (8 Replies)
Discussion started by: Mahessh123
8 Replies

10. UNIX for Dummies Questions & Answers

Program won't open

When i run a program in terminal by typing in the entire path along with the program name for example home/user/directory/subdirectory/program_name I get this error: Error initializing: File not found! However when I change my directory to the directory of the program cd... (6 Replies)
Discussion started by: vjd5023
6 Replies

11. UNIX for Dummies Questions & Answers

Need help to create cron job

Dear Experts, I want to create cronjob with the following steps: 1. go to directory /home/logs/ $cd /home/logs/ 2. copy to /tmp/ the most recent file with "prefix" local_data_ and sufix ".gz" ls -ltr drwxr-xr- 4096 Nov 24 2009 bak drwxr-xr-x 24096 Aug... (6 Replies)
Discussion started by: maxsub
6 Replies

12. Shell Programming and Scripting

Ls -al / du

// UNIX 6.1 I have /opt directory growing so fast, and /opt has a number of sub-directories. Is there a way to display files larger than 100 MB on /opt and its sub-directories? I like to have the file names, their sizes, and their filesystem path (/opt/xxx) in desc order. Please advise. (5 Replies)
Discussion started by: Daniel Gate
5 Replies

13. UNIX for Beginners Questions & Answers

Searching the value of a specific attribute among xmls files from a particular directory location

Hi Folks , I have the different xml files at the following directory `/opt/app/rty/servers/tr/current/ops/config` Let's say there are three files named abc.xml bv.xml ert.xml Now inside these xml there can be many tags as like shown below <bean id="sdrt"... (6 Replies)
Discussion started by: unclesamm
6 Replies

14. Shell Programming and Scripting

Find todays files

I am trying to find todays files only in the "root directories like /etc, /opt etc. I do not want to search in my home directory or any of its subdirectories. That's hard because a directory listing does not show the year? -rw------- 1 andy andy 22487 Oct 12 13:40 .xsession-errors ... (8 Replies)
Discussion started by: drew77
8 Replies

15. Shell Programming and Scripting

Comparing two directories with diff

Hi all, I have 2 directories on two different servers. I am trying to find out what is missing from directory X and what is missing from directory Y. they should both have the same exact files in them. I understand some files may be missing from both directories on each server. I am not sure... (8 Replies)
Discussion started by: jeffs42885
8 Replies