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)
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)
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)
: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)
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)
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)
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)
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)
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)
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 DEBIAN
sngetd
snget,v0.3.8(8) System Manager's Manual snget,v0.3.8(8)NAME
snget,sngetd - fetch news from upstream sites and store them locally.
SYNOPSIS
snget [options] [news.group...]
sngetd [options]
options: [-d] [-h Bps] [-p nparallel] [-c depth] [-m max]
DESCRIPTION
snget fetches articles for the news.groups on the command line (or all non-local newsgroups if none are specified) from their respective
upstream feeds, and stores them in the news spool /var/spool/sn. If a newsgroup could not be fetched for, it may be attempted again.
sngetd does the same, except it reads newsgroup names from /var/spool/sn/.fifo and does not exit. sngetd does not fork into the back-
ground.
snget does not guarantee to fetch the groups in the order specified on the command line. snget and sngetd will write errors and status
messages to descriptor 2.
snget and sngetd are both scheduling wrappers that call /usr/sbin/SNHELLO, snfetch, and snstore. You must own /var/spool/sn or be root in
order to run snget and sngetd.
OPTIONS -d Enable verbosity, may be specified multiple times. This option is also propagated to snfetch and snstore.
-p nparallel
Attempt to fetch for nparallel newsgroups at once. Default is 4, maximum is 8.
-h Bps Throttle the sum of bandwidth used by all snfetches to Bps bytes per second. This option is used to prevent snget or sngetd from
hogging the network. By default there is no throttling.
-c depth
depth is passed to snfetch as the depth of the command pipeline.
-m max The very first time contacting the news server, retrieve no more than max articles per newsgroup, default is 200. This option is
useful only if there are unprimed newsgroups and has no effect otherwise. The .max file in each newsgroup directory still applies
(see snfetch(8)).
-t timeout
This option is not documented because it is ignored and will disappear in a future release. See .timeout in FILES next.
FILES
Server Directories
These are the directories /var/spool/sn/.outgoing/server.name:port, which are symlinked from /var/spool/sn/news.group/.outgoing. If
the latter isn't a (symlink to a) directory, snget won't fetch for news.group.
/var/spool/sn/.outgoing/server.name:port/.timeout
If this file exists and contains a number, this is taken to be the timeout in seconds in all dealings with server.name:port.
Default is 120 seconds.
/var/spool/sn/.outgoing/server.name:port/.SNHELLO
If this program file exists, it is invoked instead of the default (usually /usr/sbin/SNHELLO) when an NNTP connection is first made
to server.name:port in order to read the greeting and upload posted articles. If server.name:port requires a username and password,
you would copy the default here and edit that information in.
/var/spool/sn/news.group/{.serial,.max}
snget and sngetd read these files on behalf of snfetch.
SIGNALS
Other signals have default behaviour.
SIGUSR1
If -h Bps was specified, Bps is halved, else is ignored.
SIGUSR2
If -h Bps was specified, Bps is doubled, else is ignored.
ENVIRONMENT VARIABLES
See also /usr/sbin/SNHELLO for the list of environment variables exported by snget/sngetd.
SNROOT If this is set and is not empty, the value is used in place of /var/spool/sn, the default news spool directory.
PATH To find SNHELLO (if this server does not have a .SNHELLO), snfetch, and snstore. If PATH does not contain /usr/sbin as one of it's
components, /usr/sbin is appended to it.
SEE ALSO snfetch(8), snstore(8), /usr/sbin/SNHELLO
N.B. Harold Tay snget,v0.3.8(8)