hi rudic
actually my intention....i explained my necessity...here step by step
step1. reading latest xml file from source and print the values in text.file
sample text.file out put
step2;;reading text.file and copy the files from source to destination path
step3;check directory exist or not exist in target location
step4;if directory exist then copy the files from source to destination then count how many files copied according to text.file column $1 wise line by line
if 10 files copied out of 15
then print sccessfully copied =10
step5;if directory not exist (no need create directory)
just print how many files not copied successfully if 5 files failure to copy
then print failure =5
cause of failure; following destination folder or directory path not exist will print in to another text2.file
step6;finally text2.txt file will attached in mail and send notification to me
using mailx or mail command with "subject status"
if all files copied success then subject status else status error
if copied 14 files out of 15 then we need to get error status
subject: irms-cm document import into livelink mm/dd/yyyy (status = ______)
step7; after review the attached file we will create destination folders manually
Last edited by sravanreddy; 07-23-2015 at 08:01 AM..
Hi, need help how to count unique destination for the source ip. The file is contains 4 number of fields. Example of the file is here
src ip dest ip #of flows total bytes
192.168.6.0 88.0.33.2 12 128
192.168.6.0 88.0.33.2 1 168
192.168.6.0 ... (5 Replies)
Hello Techies,
m here with a small issue. Have read out all the relavent threads on unix.com but it was not so good sol. for me.
It's a simple & known issue. I want to move lots of files to dest folder. Actually I want to pick up 1 year older files, but that is even taking lots of... (16 Replies)
Move all files starting with a specific name to different directory.
This shell script program should have three parameters
File Name
Source Directory
Destination Directory
User should be able to enter ‘AB_CD*' in file name parameter. In this case all the files starting with AB_CD will... (1 Reply)
I'd like to specify a different build and deployment path for files, by default the same path is used for both build and install, I wasn't able to find a way to make these different. With Solaris pkgadd, one can specify different paths in prototype, so I would assume something like that is possible... (0 Replies)
Hi!
I just want to count number of files in a directory, and write to new text file, with number of files and their name
output should look like this,,
assume that below one is a new file created by script
Number of files in directory = 25
1. a.txt
2. abc.txt
3. asd.dat... (20 Replies)
Discussion started by: Akshay Hegde
20 Replies
6. Post Here to Contact Site Administrators and Moderators
Hi guys...please any one help me ....
how to copy files from source to target location
if 5 files copied successfully out of 10 files then implement success=10
and if remaining 5 files not copied successfully then count error=5
how to implement this condition with in loop
i need code linux... (0 Replies)
Hi Guys,
how to count number of files successfully copied while coping files from source to destination path
ex:10 files from source to target location copying
if 8 files copied successfully then
echo successfully copied=8
failure=2 files
if two files get error to coping files... (2 Replies)
hi All, Any one answer my requirement.
I have source location
src_dir="/home/oracle/arun/IRMS-CM"
My Target location
dest_dir="/home/oracle/arun/LiveLink/IRMS-CM/$dc/$pc/$ct"
my source text files check with below example.text file content
$fn "\t" $dc "\t" $pc "\t" ... (3 Replies)
Hi All,
Daily i am doing the house keeping in one of my server and manually moving the files which were older than 90 days and moving to destination folder.
using the find command . Could you please assist me how to put the automation using the shell script .
... (11 Replies)
Is there a way to find out all the ports open between source IP & destination IP in any way ? (12 Replies)
Discussion started by: UnknownGuy
12 Replies
LEARN ABOUT MOJAVE
uucp
uucp(1) General Commands Manual uucp(1)NAME
uucp - Unix to Unix copy
SYNOPSIS
uucp [ options ] source-file destination-file
uucp [ options ] source-file... destination-directory
DESCRIPTION
The uucp command copies files between systems. Each file argument is either a pathname on the local machine or is of the form
system!path
which is interpreted as being on a remote system. In the first form, the contents of the first file are copied to the second. In the sec-
ond form, each source file is copied into the destination directory.
A file be transferred to or from system2 via system1 by using
system1!system2!path.
Any pathname that does not begin with / or ~ will be appended to the current directory (unless the -W or --noexpand option is used); this
resulting path will not necessarily exist on a remote system. A pathname beginning with a simple ~ starts at the UUCP public directory; a
pathname beginning with ~name starts at the home directory of the named user. The ~ is interpreted on the appropriate system. Note that
some shells will interpret a simple ~ to the local home directory before uucp sees it; to avoid this the ~ must be quoted.
Shell metacharacters ? * [ ] are interpreted on the appropriate system, assuming they are quoted to prevent the shell from interpreting
them first.
The copy does not take place immediately, but is queued up for the uucico (8) daemon; the daemon is started immediately unless the -r or
--nouucico switch is given. In any case, the next time the remote system is called the file(s) will be copied.
OPTIONS
The following options may be given to uucp.
-c, --nocopy
Do not copy local source files to the spool directory. If they are removed before being processed by the uucico (8) daemon, the copy
will fail. The files must be readable by the uucico (8) daemon, and by the invoking user.
-C, --copy
Copy local source files to the spool directory. This is the default.
-d, --directories
Create all necessary directories when doing the copy. This is the default.
-f, --nodirectories
If any necessary directories do not exist for the destination path, abort the copy.
-R, --recursive
If any of the source file names are directories, copy their contents recursively to the destination (which must itself be a direc-
tory).
-g grade, --grade grade
Set the grade of the file transfer command. Jobs of a higher grade are executed first. Grades run 0 ... 9 A ... Z a ... z from high
to low.
-m, --mail
Report completion or failure of the file transfer by mail (1).
-n user, --notify user
Report completion or failure of the file transfer by mail (1) to the named user on the remote system.
-r, --nouucico
Do not start uucico (8) daemon immediately; merely queue up the file transfer for later execution.
-j, --jobid
Print jobid on standard output. The job may be later cancelled by passing the jobid to the -k switch of uustat (1). It is possible
for some complex operations to produce more than one jobid, in which case each will be printed on a separate line. For example
uucp sys1!~user1/file1 sys2!~user2/file2 ~user3
will generate two separate jobs, one for the system sys1 and one for the system sys2.
-W, --noexpand
Do not prepend remote relative path names with the current directory.
-t, --uuto
This option is used by the uuto shell script. It causes uucp to interpret the final argument as system!user. The file(s) are sent to
~/receive/USER/LOCAL on the remote system, where USER is from the final argument and LOCAL is the local UUCP system name. Also, uucp
will act as though --notify user were specified.
-x type, --debug type
Turn on particular debugging types. The following types are recognized: abnormal, chat, handshake, uucp-proto, proto, port, config,
spooldir, execute, incoming, outgoing. Only abnormal, config, spooldir and execute are meaningful for uucp.
Multiple types may be given, separated by commas, and the --debug option may appear multiple times. A number may also be given, which
will turn on that many types from the foregoing list; for example, --debug 2 is equivalent to --debug abnormal,chat.
-I file, --config file
Set configuration file to use. This option may not be available, depending upon how uucp was compiled.
-v, --version
Report version information and exit.
--help
Print a help message and exit.
SEE ALSO mail(1), uux(1), uustat(1), uucico(8)BUGS
Some of the options are dependent on the capabilities of the uucico (8) daemon on the remote system.
The -n and -m switches do not work when transferring a file from one remote system to another.
File modes are not preserved, except for the execute bit. The resulting file is owned by the uucp user.
AUTHOR
Ian Lance Taylor <ian@airs.com>
Taylor UUCP 1.07 uucp(1)