OnDemand Users Group

Support Forums => CMOD for Multiplatforms => Topic started by: Daniel on September 14, 2017, 04:00:44 PM

Title: Delete/keep document after loading
Post by: Daniel on September 14, 2017, 04:00:44 PM
Hi everyone

Can I control whether a document gets deleted after being loaded into OnDemand ?  Can I leave the original document in place ?

I actually have two issues:

1. User want to delete documents after loading into CMOD.
2. User wants to keep original document after loading into CMOD.

Thanks
Title: Re: Delete/keep document after loading
Post by: jsquizz on September 14, 2017, 04:34:51 PM
Look into the -n flag of arsload:

-n Do not remove files
Title: Re: Delete/keep document after loading
Post by: Justin Derrick on September 14, 2017, 04:37:34 PM
Heh.  Jeff beat me to it.

Just a word of warning though...  If you restart arsload, you're going to end up with duplicates.  And if you don't clean out that directory regularly, you're going to end up with a LOT of duplicates.

-JD.
Title: Re: Delete/keep document after loading
Post by: Daniel on September 14, 2017, 04:42:37 PM
Thanks for the help.  I will give it a try
Title: Re: Delete/keep document after loading
Post by: jsquizz on September 14, 2017, 06:45:12 PM
Quote from: Daniel on September 14, 2017, 04:42:37 PM
Thanks for the help.  I will give it a try

Just as a tip from a bunch of CMOD installs I've seen..

All the times that arsload is ran as a deamon, or even when it's called programmatically, ive always seen -nvf.

Whenever I am doing my own unit testing, messing around with CMOD, or just trying something, I just got in the habit of typing -nvf as a flag.