[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

how to move a file to direcitory after read??

Posted on 2010-01-05
3
Medium Priority
?
244 Views
Last Modified: 2013-12-25
how to move a file to specific directory after the program finish read the file.

dataFILE.xml   <-- data file
proccesed="/vv/jing/ed/proccesed"   <-- directory to move the dataFILE.xml to this place.

anyone know how to do? move the file to proccesed directory.



0
Comment
Question by:ryanW
  • 2
3 Comments
 
LVL 85

Accepted Solution

by:
ozo earned 2000 total points
ID: 26188135
#!/bin/bash
program < dataFILE.xml
mv dataFILE.xml /vv/jing/ed/proccesed
0
 

Author Comment

by:ryanW
ID: 26188194
thank you... just same as command type in unix platform..
0
 
LVL 85

Expert Comment

by:ozo
ID: 26188214
bash is a shell that runs on unix, and commands in a script are like commands typed at the shell prompt.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial will discuss fancy secure registration forms, with AJAX technology support. In this article I assume you already know HTML and some JS. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you mig…
Measuring Server's processing rate with a simple powershell command. The differences in processing rate also was recorded in different use-cases, when a server in free and busy states.
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses
Course of the Month17 days, 22 hours left to enroll

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question