Sponsored Content
Top Forums Shell Programming and Scripting Shell script to monitor tmp folder for uploads Post 302225221 by mrfr0g on Thursday 14th of August 2008 10:52:33 PM
Old 08-14-2008
Shell script to monitor tmp folder for uploads

Hello,

We have been having some issues with our users overwriting files, and then not having a backup. What I would love to do, is create a shell script to monitor /tmp, for uploads, and make a copy of the file they are trying to upload before the upload finishes.

Is this possible at all?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

monitor daily file uploads

hey all, i am a shell scripting n00b so bear with me. i got a server that every night uploads one file to a remote server. the file is prodserver_date_time. i would like to make a script, run by root on a daily cron job. i want it to determine if the file was received or not. no md5... (2 Replies)
Discussion started by: jweinraub
2 Replies

2. Shell Programming and Scripting

Shell script partitions space monitor

Hello friends, I'm newbie in shell scripting... Until now i have this script: #!/bin/sh emailok = email1@domain.com emailissue = email2@domain.com limit="50" df -h | grep -vE '^Filesystem' | awk '{print $1 " " $4 " " $5}'|while read val do partition=$(echo $val | awk '{print... (9 Replies)
Discussion started by: john_doe
9 Replies

3. Shell Programming and Scripting

how to monitor a folder using script

hi, i want to monitor a particuler folder and have to report is there any new file added to the dir or not? can anyone tell me how to monitor the folder using script. the script has to run in the background continiously. Is there any way to do it? (2 Replies)
Discussion started by: vij_krr
2 Replies

4. Shell Programming and Scripting

Shell Script to monitor folder and upload found files via FTP

Hi everyone! I'm in a need of a shell script that search for all files in a folder, move all those files to a temp folder, and upload those files via FTP. When the file transfer via FTP completes successfully, the file is moved to a completed folder. In case any of those files fails, the file... (4 Replies)
Discussion started by: pulsorock
4 Replies

5. Shell Programming and Scripting

How to monitor a command inside shell script

Hi All, Is there any way to monitor a command inside shell script ? I have a script inside which I have a tar command which zips around 200GB data. tar zcvf $Bckp_Dir/$Box-BaseBackup-$Day.tar.gz * --exclude 'dbserver_logs/*' --exclude postmaster.pid --exclude 'pg_xlog/*' I want to... (3 Replies)
Discussion started by: sussus2326
3 Replies

6. UNIX for Advanced & Expert Users

Large crout files created in /tmp folder

Hello All, We are having a archiving script which runs every monday. When ever the script runs it creates crout* files in /tmp folder. This file appends till /tmp become 100% full. We are facing this problem now very frequently. We caanot delete this files,we have to kill the script. when we... (5 Replies)
Discussion started by: Upendra Bhushan
5 Replies

7. Shell Programming and Scripting

Sqlplus inside shell script writing to tmp file

Hi, facing an issue while calling sqlplus inside shell script. It for some reason goes to tmp file to write something and i get error as permission denied as i dont have access there. ANy idea why sqlplus writes in /tmp and how to change or stop this ? (2 Replies)
Discussion started by: rushikeshs
2 Replies

8. Shell Programming and Scripting

Shell script to find the GB files in /tmp directory in remote server

Hi, i need help on shell scripting. Main intention of the script is step 1: ssh to remote server Step 2: cd /tmp in remote server Step 3: in tmp i want to grep only files and directories which are in GB sizes All the servers list file is - tmpsrv.txt vi tmpsrv.txt ... (17 Replies)
Discussion started by: kumar85shiv
17 Replies

9. Homework & Coursework Questions

Need shell script to monitor files

Hi Experts, I am not good in writing script. Just stared. I am looking for shell script to check following parameters. 1) Number of files on remote Linux SUSE server.- Any directory and sub directory. 2) I should define number of files in script. Files should be variable. 3) Age of the... (2 Replies)
Discussion started by: ApmPerfMonitor
2 Replies

10. Shell Programming and Scripting

Request for Shell script to move files from Subfolder to Parent folder and delete sub folder

Hi Team, I am new to shell script and there is a requirement where files should be moved from Subfolder to parent folder. Eg: parent folder --> /Interface/data/test/IN Sub folder -->/Interface/data/test/IN/Invoice20180607233338 Subfolder will be always with timestamp... (6 Replies)
Discussion started by: srivarun15
6 Replies
WHO-UPLOADS(1)						      General Commands Manual						    WHO-UPLOADS(1)

NAME
who-uploads - identify the uploaders of Debian source packages SYNOPSIS
who-uploads [options] source_package ... DESCRIPTION
who-uploads uses the Package Tracking System (PTS) to identify the uploaders of the three most recent versions of the given source pack- ages. Note that the uploaders are identified using their gpg(1) keys; installing a recent version of the debian-keyring package should provide most of the required keys. Note that because the PTS uses source packages, you must give the source package names, not the binary package names. OPTIONS
-M, --max-uploads=N Specify the maximum number of uploads to display for each package; the default is 3. Note that you may not see this many uploads if there are not this many recorded in the PTS. --keyring keyring Add keyring to the list of keyrings to be searched for the uploader's GPG key. --no-default-keyrings By default, who-uploads uses the two Debian keyrings /usr/share/keyrings/debian-keyring.gpg and /usr/share/keyrings/debian-maintain- ers.gpg (although this default can be changed in the configuration file, see below). Specifying this option means that the default keyrings will not be examined. The --keyring option overrides this one. --date Show the date of the upload alongside the uploader's details --nodate, --no-date Do not show the date of the upload alongside the uploader's details. This is the default behaviour. --no-conf, --noconf Do not read any configuration files. This can only be used as the first option given on the command-line. --help, -h Display a help message and exit successfully. --version Display version and copyright information and exit successfully. CONFIGURATION VARIABLES
The two configuration files /etc/devscripts.conf and ~/.devscripts are sourced in that order to set configuration variables. Command line options can be used to override configuration file settings. Environment variable settings are ignored for this purpose. The currently recognised variables are: WHOUPLOADS_DATE Show the date of the upload alongside the uploader's details. By default, this is "no". WHOUPLOADS_MAXUPLOADS The maximum number of uploads to display for each package. By default, this is 3. WHOUPLOADS_KEYRINGS This is a colon-separated list of the default keyrings to be used. By default, it is the two Debian keyrings /usr/share/keyrings/debian-keyring.gpg and /usr/share/keyrings/debian-maintainers.gpg. AUTHOR
The original version of who-uploads was written by Adeodato Simo <dato@net.com.org.es>. The current version is by Julian Gilbey <jdg@debian.org>. DEBIAN
Debian Utilities WHO-UPLOADS(1)
All times are GMT -4. The time now is 04:39 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy