Sponsored Content
Top Forums Shell Programming and Scripting sftp - get newly created files on incremental basis Post 302481572 by fpmurphy on Saturday 18th of December 2010 09:56:29 AM
Old 12-18-2010
maybe use the find utility to only move files that are more than an hour old?
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

How to FTP all newly created but the current open file?

An application running on HP-UX constantly generates new text log files ( I think using logpipe ). Any new file created requires to be ftp'ed to an offline server, however I want to make sure that the current file being written should not be transferred. For examples consider the following files... (3 Replies)
Discussion started by: indianya
3 Replies

2. UNIX for Dummies Questions & Answers

Newly created files default group and write permissions

Whenever I create a new file the group name is "dnn" and the file permissions are "-rw-r--r--". How do I get it so when I create files (with vi or other programs) that the default group is "sss" and the permissions are 770? (I am running HP-UNIX) Thanks, GoldFish (2 Replies)
Discussion started by: goldfish
2 Replies

3. UNIX for Dummies Questions & Answers

Forcing UID on Files/Dirs Created with SFTP?

I have a situation where I have to provide Windows based users with access to specific files and directories on a *nix web mail server. The users cannot use the CLI, so SSH is out. They've previously used a product called Webdrive to access *nix boxes via SFTP. The files and dirs they need... (5 Replies)
Discussion started by: deckard
5 Replies

4. UNIX for Dummies Questions & Answers

Help with command to find all newly created files in a given time period

Hi all! Can someone please help me create a command to accomplish the following task. I have a parent directory called ex. /var/www/parent and it has a bunch of sub-directories called /var/www/parent/1, var/www/parent/1/xyz/ and etc. What I would like to do is to count the number of files... (2 Replies)
Discussion started by: bbzor
2 Replies

5. Shell Programming and Scripting

How to find the newly created directory

Hi, I need to create new directory by increasing the number by 1 of extracted lastly created directory. e.g. Log\out_log_1\ Log\out_log_2\ Log\out_log_3\ become Log\out_log_1\ Log\out_log_2\ Log\out_log_3\ Log\out_log_4\ Can anyone help how to do it in c-shell... (3 Replies)
Discussion started by: Andre_2008
3 Replies

6. UNIX for Advanced & Expert Users

default size of a newly created folder

Hi all, In linux how to create a directory with specified size, so that it can be used only up to the mentioned size. Actually my question is, whether we can do directory quota in linux. mounting the directory in a partiton will do that, but do we have any other option... (1 Reply)
Discussion started by: anishkumarv
1 Replies

7. Solaris

Can't see Newly created LUN by SAN admin

hello, i am an oracle DBA and trying to scan a newly created LUN of 200 GB on fiber channel by SAN admin.we have solaris 10 and SANtoolkit is installed.i tried following to get the new LUN at my machine. go /opt/Netapp/Santoolkit/bin and then ./sanlun lun show but i see only the existing... (12 Replies)
Discussion started by: janakors
12 Replies

8. Shell Programming and Scripting

Copy an array to a newly created directory

hello everyone, I am new to perl script and trying to develop a script as follows. I am trying to Create an array for storing all file names. I am trying to copy $libs into "scratch". however i am unable to do so. Please suggest.. #!/usr/bin/perl use File::Copy; #use... (5 Replies)
Discussion started by: Rashid Khan
5 Replies

9. Hardware

Formatting a newly created lun

Hi , I have created one new lun in my SAN storage and make it visible to my HP servers , but the fdisk -l output is somehow confusing. Do not know what to do next ---------- fdisk -l /dev/sdo1 Disk /dev/sdo1 (Sun disk label): 64 heads, 32 sectors, 10238 cylinders Units =... (7 Replies)
Discussion started by: mishra.sankar
7 Replies

10. AIX

No iscsi available in newly created AIX wpar

AIX 7.1 New to WPAR, hopefully just missing something simple here. Creating the WPAR like this..... (The box where the WPAR is hosted does have an iscsi protocol device) mkwpar -h wpar08 -l -n wpar08 -N interface=en0 address=xxx.xx.xx.xxx netmask=255.255.255.0 -D devname=/dev/iscsi0 -D... (0 Replies)
Discussion started by: TomR
0 Replies
defragcron(8)						      System Manager's Manual						     defragcron(8)

NAME
defragcron - Schedules AdvFS file domains for defragmenting SYNOPSIS
/usr/sbin/defragcron [-p] [-q] [-t nnn] [-b hh:mm] [-a hh:mm] [-l pathname] [domain...] /usr/sbin/defragcron [-p] [-q] [-t nnn] [-T mm] [-l pathname] [domain...] OPTIONS
Specifies that the domains are to be defragmented in parallel. If not specified, the default is to serially defragment the domains. Sup- press informational messages. If not specified, the default is to produce informational messages. Specifies the aggregate I/O performance threshold, the point at which the domain should be defragmented. A number from 1-100. If not specified, the default is to always defrag- ment the domain. The performance threshold is based on the value returned by the defragment -nv command. If this value is lower than or equal to the value specified here, the domain is defragmented. If specified, the utility will not run before this time and will return an error if the time is not yet reached. Specify time values using the 24-hour clock. If not specified, the default time is 01:00. If specified, the utility will not run after this time, and will return an error if the time has been passed. Specify time values using the 24-hour clock. If not specified, the default time is 05:00. Specifies an exact time interval, in minutes, for the defragment utility to run. If not specified, there is no default. If you use this option, its action overrides the before and after time checking of the -a and -b options. Specify the -l option to direct messages to log files in the specified directory. One log file is generated for nonspecific messages and separate log files are generated for each domain that is defragmented. If the option is not specified, the default action is to not produce log files for the messages (which then are directed to the standard output device). If the option is specified, you also must specify a pathname for the directory into which the log files are to be written. The default directory, as specified in the root crontab entry, is /usr/var/defragcron/. The names of the log files have the following format: domain1.log, domain2.log, ..., and so on, one file for each active domain, plus a file, defragcron.log for the nonspecific messages. If you have named a domain defragcron, messages for that domain are writ- ten to the nonspecific messages in the defragcron.log file. OPERANDS
Specifies one or more AdvFS file domains. If no domains are specified, the default action is for the utility to defragment all active AdvFS file domains. DESCRIPTION
The defragcron utility runs the defragment utility to a schedule that you specify on all active AdvFS file domains or on the active domains you specify. The typical use of this utility is to run it as a command in the cron daemon. See cron(8). Unless the domain is listed in the comand line, the utility does not attempt to defragment inactive file domains (those which have no mounted filesets). It can try to defragment file domains that have some mounted and some unmounted filesets. In this case, the utility fails. RESTRICTIONS
You must have root user privileges to run this utility. All restrictions for the defragment utility are in effect for the defragcron utility. EXIT STATUS
The utility returns a 0 (zero) on success. Otherwise, it returns a 1 and an error diagnostic. EXAMPLES
The following example defragments all active domains that have an aggregate I/O performance threshold less than or equal to 60 for an interval of 240 minutes: # /usr/sbin/defragcon -q -t 60 -T 240 FILES
The command's path. The path of the defragment utility. SEE ALSO
Commands: crontab(1), cron(8), defragment(8) defragcron(8)
All times are GMT -4. The time now is 04:55 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy