EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #08162
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
Re: [EP-tech] Removing all user accounts with no deposits
- To: Martin Hawksey <martin.hawksey@alt.ac.uk>
- Subject: Re: [EP-tech] Removing all user accounts with no deposits
- From: David R Newman <drn@ecs.soton.ac.uk>
- Date: Tue, 12 May 2020 15:59:07 +0100
Hi Martin,
My bad! I was using some obfuscated Perl there. In this case the Diamond operator:
https://perlmaven.com/the-diamond-operator
The shift removes the repo ID so the Diamond operator only tries
to open the file named in the second argument. The Diamond
operator reads a line at a time, that is why I said the user IDs
need to be new line separated in this file.
Regards
David Newman
On 12/05/2020 15:35, Martin Hawksey
wrote:
Hi David,
Thanks for getting back to me, the script looks ideal. Sorry for a follow-up perl question but I can see in the shared script how:my $repoid = shift @ARGV;
would get the repository name and remove ARCHIVE_NAME from @ARGV but where in the script does it open the file of new line separated user IDs?
Many thanksMartin
- References:
- [EP-tech] Removing all user accounts with no deposits
- From: Martin Hawksey <martin.hawksey@alt.ac.uk>
- Re: [EP-tech] Removing all user accounts with no deposits
- From: Martin Hawksey <martin.hawksey@alt.ac.uk>
- [EP-tech] Removing all user accounts with no deposits
- Prev by Date: Re: [EP-tech] Removing all user accounts with no deposits
- Next by Date: [EP-tech] Apache and PerlSwitches
- Previous by thread: [EP-tech] EPrints/CRIS
- Next by thread: [EP-tech] DOI handling in orcid_support_advance
- Index(es):