06-01-2009
Move Script
Hi
I am very new to scripts and only have a basic knowledge
What i am trying to do is move files from one directory to another, but i need to make sure the file is stable before it moves the file to the destination. Here is the script that i am using that is moving the files, it part of a script another company used and i am trying to hack it around to suit. Any help would be appreciated and if there is a better way to do it please say so
#!/bin/sh
SOURCE_DIR=/appcfg/COLOURSERVE/OUT
BACKUP_DIR=/symlnks/io/jobs/workflows/TAG-461/Conde_Nast_Output
cd $SOURCE_DIR
mv -f * $BACKUP_DIR/
8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello Gurus!
Please help!
I would like to get some help with the following:
I'm working right now on a Data Warehouse project and I need to automate a manual procedure I am using to process the data files coming into the database, any information/ideas and or which script language to go... (4 Replies)
Discussion started by: alfpathros
4 Replies
2. Shell Programming and Scripting
Does anyone have a good script to move log files from a cron?
There are a lot of logs, about 100 or more and they are constantly
being written too. (7 Replies)
Discussion started by: photon
7 Replies
3. Shell Programming and Scripting
Hi,
Want to write a script which move like:
these are files in different dir structure,
/home/darshak/test/sh/new.txt
/home/darshak/test/new1.txt
/home/darshak/test/pl/file.txt
script will move same structure as above but in different dir,
/usr/local/test/sh/new.txt... (2 Replies)
Discussion started by: darshakraut
2 Replies
4. UNIX for Dummies Questions & Answers
Anyone have an idea to why the statement below does not work within a script but works when issued from the command line?
mv /dir_files/submit.log* /bintemp (1 Reply)
Discussion started by: bwcberb
1 Replies
5. UNIX Desktop Questions & Answers
Hi
I am after a simple script to move folders/files from one directory into another directory on the same server. I want to run a cron so this can run at midnight.
Issue is there will not always be data in the source folder.
This script works fine but it errors if nothing exists in the source... (3 Replies)
Discussion started by: treds
3 Replies
6. Shell Programming and Scripting
hi,
I have a lot of files named xxxxx__AA.txt, xxxxx__BB.txt, xxxxx__CC.txt and I would like to move xxxxx__AA.txt in AA directory, xxxxx__BB.txt in BB etc. Could you help me do it in bash script? (5 Replies)
Discussion started by: corfuitl
5 Replies
7. Shell Programming and Scripting
hi guys i have a simple question
i have a directory with name of files in /tmp which contain some files
i want to check all files with file command and if they were MP3 or Wave sync them into new place . for example ( /root/mp3 )
i find all files and remove white space and rename them... (1 Reply)
Discussion started by: mhs
1 Replies
8. Shell Programming and Scripting
Hi All,
I am new to Linux/Scripting and need some assistance in coming up with a script that can move certain amount of files from one directory to other every seconds.
Usercase: We have around 100k files in tmp directory on my server which needs to be moved to another folder to get... (3 Replies)
Discussion started by: Raj1184
3 Replies
LEARN ABOUT X11R4
monodocs2html
monodocs2html(1) General Commands Manual monodocs2html(1)
NAME
monodocs2html - Translate Monodoc XML to HTML
SYNOPSIS
monodocs2html -source:SOURCE_DIR -dest:DEST_DIR [OPTIONS]*
DESCRIPTION
monodocs2html has been obsoleted by mdoc(1). See the mdoc-export-html(1) man page.
monodocs2html is a program that creates HTML documentation from the Monodoc documentation XML files.
OPTIONS
-dest:DEST_DIR
Write the HTML files into the directory DEST_DIR .
-dumptemplate
Dump the default page template to standard output so that you can use it as a base for a new template for use with the -template
option.
-ext:FILE_EXTENSION
FILE_EXTENSION is the file extension for generated files.
This defaults to html .
-?, -help
Show program argument information.
-onlytype:TYPE
Only generate HTML for the type TYPE .
-source:SOURCE_DIR
SOURCE_DIR is the base directory containing the Monodoc XML documentation.
This directory should contain an index.xml file, the namespace-name.xml files (one for each namespace), and namespace-name directo-
ries (one for each namespace), which will contain the type.xml files holding the monodoc documentation.
-template:TEMPLATE
Generate HTML using the page template TEMPLATE .
-V, -version
Display version and licensing information.
TEMPLATE FORMAT
The template file is an XSLT which needs to process the following input XML document:
<Page>
<CollectionTitle>Collection Title</CollectionTitle>
<PageTitle>Page Title</PageTitle>
<Summary>Page Summary</Summary>
<Signature>Type Declaration</Signature>
<Remarks>Type Remarks</Remarks>
<Members>Type Members</Members>
<Copyright>Documentation Copyright</Copyright>
</Page>
The generated HTML also makes use of the following CSS classes, which should be defined so that output is nicely formatted:
.CollectionTitle
.PageTitle
.Summary
.Signature
.Remarks
.Members
.Copyright
.Section
.SectionBox
.NamespaceName
.NamespaceSummary
.MemberName
.MemberSignature
.MemberBox
.Subsection
.SubsectionBox
.SignatureTable
.EnumerationsTable
.CodeExampleTable
.MembersListing
.TypesListing
.InnerSignatureTable
.TypePermissionsTable
HTML LINKS
All members within the HTML file have a id attribute to permit linking to a specific member. The value of the id attribute is the String
ID of the specified member. See the STRING ID FORMAT section of the monodocer man page for more information.
MAILING LISTS
Visit http://lists.ximian.com/mailman/listinfo/mono-docs-list for details.
WEB SITE
Visit http://www.mono-project.com for details
monodocs2html(1)