Sponsored Content
Top Forums Shell Programming and Scripting Need to write a script that checks whether files are moving out of a directory. Post 302968499 by RudiC on Thursday 10th of March 2016 03:39:47 AM
Old 03-10-2016
What would be an acceptable files' residence time in that directory?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

moving files from a unix directory to a windows directory

Any body any ideas i'm failry new to this so any help would be appreciated. Cheers Steve (2 Replies)
Discussion started by: gleads
2 Replies

2. Shell Programming and Scripting

Moving files not directory.

Hi, I want to move only files not subdirectories. I issued the below command, but subdirectories are also gets moved. mv /ucrrpd/input/upload/ /ucsspd/common/history/ In the above case, all subdirectories in /ucrrpd/input/upload/ also gets moved to /ucsspd/common/history/ I want to... (1 Reply)
Discussion started by: senthil_is
1 Replies

3. Shell Programming and Scripting

Creating date directory and moving files into that directory

I have list of files named file_username_051208_025233.log. Here 051208 is the date and 025233 is the time.I have to run thousands of files daily.I want to put all the files depending on the date of running into a date directory.Suppose if we run files today they should put into 05:Dec:08... (3 Replies)
Discussion started by: ravi030
3 Replies

4. Shell Programming and Scripting

Moving files to specified directory.

Hi I have made a shell script which moves files from a trash bin back to the original directory and also has the option to restoring the file to a directory that is specified by the user. The restoring it to the original directory is working fine, the restoring it to a specified directory is now.... (2 Replies)
Discussion started by: Jodi
2 Replies

5. Shell Programming and Scripting

Moving all files from 1 directory to another

For example i have a directory called name and another called school how to remove first 5 files from name into school? thanks for helping (1 Reply)
Discussion started by: cryogen
1 Replies

6. Shell Programming and Scripting

Moving Files from one directory to another directory

Please do help me out with this. I have to write the following script. There is a directory named "storage_directory" and it has hundreds of files in it. My script has to move each file from the storage_directory to "temp_directory" After moving each file, it has to create a log of the File... (4 Replies)
Discussion started by: ss3944
4 Replies

7. Shell Programming and Scripting

Need help to write a script for moving the log files to some other folder

Hi Experts, I want to write a script, based upon the following requirement 1) I am having 5 application $ cd logs $ ls -l drwxr-xr-x 2 natraj nat 5.0K Sep 20 10:25 one drwxr-xr-x 2 natraj nat 5.0K Sep 20 10:39 two drwxr-xr-x 2 natraj nat 1.5K Sep 20 10:58... (4 Replies)
Discussion started by: natraj005
4 Replies

8. Shell Programming and Scripting

Grepping file names, comparing them to a directory of files, and moving them into a new directory

got it figured out :) (1 Reply)
Discussion started by: sHockz
1 Replies

9. UNIX for Dummies Questions & Answers

Moving all files in a directory to another directory and archiving them

Hi All, i need to move all files in a directory to some other directory and need to archive them,,, Ex.. Source_Path/my_directory/ files in it are... acw.csv 123.txt bge.dat etc ..and we dont know how many files does my_directory contains and all are with different extensions ..so i need... (6 Replies)
Discussion started by: dssyadav
6 Replies

10. Shell Programming and Scripting

Moving Files one directory to another directory shell script

Hi, Could you please assist how to move the gz files which are older than the 90 days from one folder to another folder ,before that it need to check the file system named "nfs" if size is less than 90 or not. If size is above 90 then it shouldn't perform file move and exit the script throwing... (4 Replies)
Discussion started by: venkat918
4 Replies
FileBrowser(3I) 					    InterViews Reference Manual 					   FileBrowser(3I)

NAME
FileBrowser - browse and/or select file names SYNOPSIS
#include <InterViews/filebrowser.h> DESCRIPTION
FileBrowser is a StringBrowser that displays file names. In addition to the standard StringBrowser constructor parameters, the FileBrowser constructor takes a directory name as an argument. The FileBrowser scans the corresponding directory, appending the file names to its list of strings. FileBrowser lets the user choose a file name, and the application queries the FileBrowser for the chosen file. PUBLIC OPERATIONS
FileBrowser(ButtonState*, const char* dir, int rows, int cols, boolean uniqueSel, int highlight, const char* done) FileBrowser(const char* name, ButtonState*, const char*, int, int, boolean, int, const char*) Create a new FileBrowser object. The ButtonState, rows, cols, uniqueSel, highlight, done, and name parameters have semantics iden- tical to those of the corresponding StringBrowser parameters. The dir parameter specifies the directory to search for file names. Internally, FileBrowser prepends dir to relative path specifications in operations that require them, thus avoiding a chdir(2). boolean IsADirectory(const char*) Return whether or not the given relative path corresponds to a valid directory. boolean SetDirectory(const char* newdir) Change the search directory to newdir if that directory is accessible. The function returns true if successful. const char* GetDirectory() Return the name of the search directory. const char* ValidDirectories(const char* path) Given a path string, return the largest substring (starting from the beginning of path) that represents a valid path. The substring is returned in a static buffer and should be copied before use. const char* Normalize(const char* path) Return a normalized version of path with all spurious slashes, dots, and tildes interpreted. The normalized path is returned in a static buffer and should be copied before use. const char* Path(int i) Return the ith string as it appears in the FileBrowser. This function prepends the search directory to the string, normalizes the concatenation, and returns the result. void RereadDirectory() Rescan the current directory without updating the FileBrowser's appearance. virtual void Update() Rescan the current directory and update the FileBrowser's appearance to reflect any changes in the set of files it should display. void SetTextFilter(const char*) void SetDirectoryTextFilter(const char*) void SetModeFilter(int) void SetDirectoryModeFilter(int) By default, FileBrowser displays all the files and directories it finds in the search directory. These functions provide some con- trol over the entries that FileBrowser displays. SetTextFilter specifies a regular expression (see Regexp(3I)) to match against file names. SetDirectoryTextFilter serves a similar role for directory names. SetModeFilter and SetDirectoryModeFilter specify the mode (see chmod(1)) that displayed files and directories should have. Only files and directories that match both the regular expression and the mode will appear in the FileBrowser. Passing nil for the regular expression or 0 for the mode restores the default behavior. PROTECTED OPERATIONS
void UpdateStrings() Explicitly update the FileBrowser's appearance to reflect any changes in the set of files it should display without rescanning the directory. virtual boolean Acceptable(const char*) Return whether the given file name is an acceptable name. By default, files that conform to the text or mode filter specifications are acceptable. Only acceptable files will be displayed by UpdateStrings. SEE ALSO
Interactor(2I), Button(3I), StringBrowser(3I), Regexp(3I), chmod(1) InterViews 30 November 1989 FileBrowser(3I)
All times are GMT -4. The time now is 04:13 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy