10-16-2013
Yes Carlo.Thanks for the quick response.The old files are being periodically removed.Once the file is copied is to the target location, they should be deleted.
Further, the file is the trigger to the script.
For some reason if the four files do not come on mon-thu and on fri if all 5 files come at once they should be sent based on the priority described above.
can this be done please?
Last edited by vikramgk9; 10-16-2013 at 04:16 PM..
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I need help in forming a script to copy files from one location which has a sub directory structure to another location with similar sub directory structure,
say location 1,
/home/rick/tmp_files/1-12/00-25/
here 1-12 are the number of sub directories under tmp_files and 00-25 are sub... (1 Reply)
Discussion started by: pharos467
1 Replies
2. Shell Programming and Scripting
Create a script that copies files from one specified directory to another specified directory, in the order they were created in the original directory between specified times. Copy the files at a specified interval. (2 Replies)
Discussion started by: allways4u21
2 Replies
3. Shell Programming and Scripting
Hello all! I am trying to create a script that will copy files from one location, to another but only folders that are filled with thumbnails to an exact directory replica in the second location. For example:
/images/2012/01/19/Event/Photographer/thumbnails
to
... (4 Replies)
Discussion started by: Buzzman25
4 Replies
4. UNIX for Dummies Questions & Answers
:EDIT:
I think my post name should have been labeled: how to copy files and record original file location. not "retain".
Hello, this is my first post! I searched the forums a lot before posting, but was unable to answer my question.
Here's my problem:
There are several hundred text files... (4 Replies)
Discussion started by: willie8605
4 Replies
5. Shell Programming and Scripting
I have below files in one location /test/files and also for each dates there are similar files
A20130924.0000-0005_file1
A20130924.0000-0005_file2
A20130924.0005-0010_file1
A20130924.0005-0010_file2
.
.
.
A20130924.2355-0000_file1
A20130924.2355-0000_file2
If i execute the script like... (4 Replies)
Discussion started by: Saidul
4 Replies
6. Shell Programming and Scripting
please help, I would like to merge 4 files, all of them same format.
The first col is the key for all files,followed by variable number of fields so I want to check if the key is present in the files according to priority and then also add a column saying it came from which file .
So the... (4 Replies)
Discussion started by: ritakadm
4 Replies
7. Shell Programming and Scripting
Hello Experts,
I need to copy files from one location to another using xargs.
Tried something like this (In Ubuntu & Solaris ).
mkdir -p 1234;
find /home/emd/Desktop/n007/M007/ -type f -name "A2014*" | xargs -0 cp -r {} /home/emd/Desktop/1234
But every time i run this, a weird error... (6 Replies)
Discussion started by: Saidul
6 Replies
8. Shell Programming and Scripting
Hello there wonderful people,
I am running on Solaris 10 and with the following ksh version:
strings /bin/ksh | grep Version | tail -2
@(#)Version M-11/16/88i
Suppose I want to copy files that end in _v2 from underneath /dir1/dir2/save directory to /dir1/dir2. Basically, what I’m... (12 Replies)
Discussion started by: ejianu
12 Replies
9. Shell Programming and Scripting
Hello All,
Since i'm relatively new in shell script need your guidance.
I'm copying files manually based on a specific word in a file name and its extension and then moving it into some destination folder.
so if filename contains hyr word and it has .md and .db extension; it will move to TUM/HYR... (13 Replies)
Discussion started by: prajaktaraut
13 Replies
10. UNIX for Beginners Questions & Answers
Hello everyone, Im super new to coding but increasingly in need of it at work. Im have task stacked because of this problems, that I cannot figure out how to solve looking on the internet after trying many many things that looked similar to me.
I have multiple data files of the form (see below).... (2 Replies)
Discussion started by: Xfiles_fan
2 Replies
LEARN ABOUT OPENSOLARIS
tk_addoption
Tk_AddOption(3TK) Tk Library Procedures Tk_AddOption(3TK)
__________________________________________________________________________________________________________________________________________________
NAME
Tk_AddOption - Add an option to the option database
SYNOPSIS
#include <tk.h>
void
Tk_AddOption(tkwin, name, value, priority)
ARGUMENTS
Tk_Window tkwin (in) Token for window.
CONST char *name (in) Multi-element name of option.
CONST char *value (in) Value of option.
int priority (in) Overall priority level to use for option.
_________________________________________________________________
DESCRIPTION
This procedure is invoked to add an option to the database associated with tkwin's main window. Name contains the option being specified
and consists of names and/or classes separated by asterisks or dots, in the usual X format. Value contains the text string to associate
with name; this value will be returned in calls to Tk_GetOption. Priority specifies the priority of the value; when options are queried
using Tk_GetOption, the value with the highest priority is returned. Priority must be between 0 and TK_MAX_PRIO. Some common priority
values are:
20 Used for default values hard-coded into widgets.
40 Used for options specified in application-specific startup files.
60 Used for options specified in user-specific defaults files, such as .Xdefaults, resource databases loaded into the X server, or
user-specific startup files.
80 Used for options specified interactively after the application starts running.
KEYWORDS
class, name, option, add
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+--------------------+-----------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+--------------------+-----------------+
|Availability | SUNWTk |
+--------------------+-----------------+
|Interface Stability | Uncommitted |
+--------------------+-----------------+
NOTES
Source for Tk is available on http://opensolaris.org.
Tk Tk_AddOption(3TK)