Skip to content
Snippets Groups Projects
Commit b78cba35 authored by Eesaan Atluri's avatar Eesaan Atluri
Browse files

Change naming for dir where files done with processing are placed

parent 71b3193d
No related branches found
No related tags found
1 merge request!1Draft: xdmod data transfer and management
#!/bin/bash
input_dir="/home/centos/consume_queue"
confirmation_dir="/home/centos/confirm_queue"
input_dir="/home/centos/input_queue"
done_dir="/home/centos/done_queue"
......@@ -12,7 +12,7 @@ for each_file in $input_dir/*; do
if [ $? -eq 0 ]; then
# Move file on succesful ingestion
echo "moving file $each_file to $confirmation_dir"
mv $each_file "$confirmation_dir/$each_file.done"
mv $each_file "$done_dir/$each_file.done"
else
echo "File ingestion failed:" #some error handling here.
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment