OnDemand Users Group

Support Forums => CMOD for Multiplatforms => Topic started by: itbos on January 24, 2014, 04:17:45 PM

Title: arsload and deleting files
Post by: itbos on January 24, 2014, 04:17:45 PM
I use a od daemon and run the arsload and pass it parameters.  This all works fine until it comes time to delete the file after processing and indexing it.  I noticed that the user id I use (AIX system btw) has access to the files being placed into the loading area and can process them but when it comes time to delete them beause this specific user id only has access via the group permissions it reports an error deleting the file .. but the file is actually deleted ... and i think that is because if you are nothe owner of the file you are prompted .. make sense?  It there a way to use arload to delete the file after processing without having it prompt?

Thanks!
Title: Re: arsload and deleting files
Post by: Justin Derrick on January 25, 2014, 02:54:31 PM
Try changing the umask for the user ID that owns the files.  The umask will determine which file permissions get set when a new file is created.  Talk to your UNIX system administrator for more information about how it works and how to implement the change.

-JD.
Title: Re: arsload and deleting files
Post by: itbos on January 27, 2014, 03:25:34 PM
My issue is that the user id running CMOD has group access to the file to delete it but there is a prompt to delete (Y or N) that is where I believe the error occurs, RC=-1.  Many different apps dump files that are accessible by the CMOD user, but this prompt to delete is what I wish to over come.  Any ideas?
Title: Re: arsload and deleting files
Post by: Ed_Arnold on January 27, 2014, 04:29:18 PM
On z/OS, I point STDIN to a file which just contains the letter y to respond to the prompt in batch:

http://ODUG.net/index.php?topic=690.0 (http://odug.net/index.php?topic=690.0)

Ed
Title: Re: arsload and deleting files
Post by: jeffs42885 on January 27, 2014, 06:37:30 PM
At my last company, We used the same account that runs ARSSOCKD which i believe is setup with sudo access to start ARSSOCKD/ARSOBJ, and in the OnDemand admin we have the same account defined with Administrator access.

Hope that is of some help.
Title: Re: arsload and deleting files
Post by: rick on January 28, 2014, 04:44:42 AM
Quote from: itbos on January 27, 2014, 03:25:34 PM
My issue is that the user id running CMOD has group access to the file to delete it but there is a prompt to delete (Y or N) that is where I believe the error occurs, RC=-1.  Many different apps dump files that are accessible by the CMOD user, but this prompt to delete is what I wish to over come.  Any ideas?

In that case, I guess arsload is trying to the OS native remove command rather than removing it in the program. Can you try to create a alias for "rm" as "rm -f" and set it is as default path?