arsload and deleting files

Previous topic - Next topic

itbos

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!

Justin Derrick

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.
Call:  +1-866-533-7742  or  eMail:  jd@justinderrick.com
IBM CMOD Wiki:  https://CMOD.wiki/
FREE IBM CMOD Webinars:  https://CMOD.Training/
IBM CMOD Professional Services: https://CMOD.cloud

Interests: #AIX #Linux #Multiplatforms #DB2 #TSM #SP #Performance #Security #Audits #Customizing #Availability #HA #DR

itbos

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?

Ed_Arnold

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

Ed
#zOS #ODF

jeffs42885

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.

rick

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?