EPrints Technical Mailing List Archive
Message: #09123
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
Re: [EP-tech] How can i delete thousands of fake users?
- To: <eprints-tech@ecs.soton.ac.uk>, SGI Support | OST - Ostschweizer Fachhochschule <sgi-support@ost.ch>
- Subject: Re: [EP-tech] How can i delete thousands of fake users?
- From: David R Newman <drn@ecs.soton.ac.uk>
- Date: Fri, 9 Dec 2022 01:34:13 +0000
Hi Christian,You could just add all the user IDs one after another to the delete_user script:
./delete_user REPO_ID `for ((x=5; x<=25590; x++)); { echo -n "$x "; }`However, I suspect that command may be too long for bash (i.e. your shell). You could use xargs but you probably don't want to call the delete_user script 25000+ times, as this will be slow compared to calling it just a few times with multiple arguments. So it may be better to write a bash script that passes 1000 user IDs at a time:
#!/bin/bash for ((i=5; i<=25590; i=i+1000)); do./delete_user REPO_ID `for ((j=i; j<i+1000 && j<=25590; j++)); { echo -n "$j "; }`
done Regards David NewmanOn 08/12/2022 5:40 pm, SGI Support | OST - Ostschweizer Fachhochschule via Eprints-tech wrote:
CAUTION: This e-mail originated outside the University of Southampton. Hey We have many thousands fake users on our eprints system. Like this: 24589 1 UNSPECIFIED Elon Musk recommends this service to receive passive income from investments in cryptocurrency from $1680 per day >>>>>>>>>>>>>>>>>>>>>>>>>>> https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdmlw5iyqf4.quezon.run%2Fde1552&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cecffbb682aea42d1143708dad9857b0b%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638061464593637797%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=HzUEuWZogbMpkqw6BnBeSjofWvAeieeb1b6iMSfiHu4%3D&reserved=0 <<<<<<<<<<<<<<<<<<<<<<<< How can i delete them with a script? I found this post, but the user id has to be specified there. I would like to specify a range, User ID 5 - 25590 https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgist.github.com%2Fjesusbagpuss%2Fd5fa10ef3915e036f0eb24b4a2ad019f&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cecffbb682aea42d1143708dad9857b0b%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638061464593637797%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=M4b%2FwjujOwBHC0dOOI3EBauHe%2BHfnfoH3OgMBBn1ycA%3D&reserved=0 We use EPrints Release 3.4.2 Thanks Christian *** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech *** Archive: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cecffbb682aea42d1143708dad9857b0b%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638061464593637797%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=1%2Btj0V8mz9I%2Bs%2BFVm6ztXYO1Aa5tAEnjtE52X8so2TY%3D&reserved=0 *** EPrints community wiki: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cecffbb682aea42d1143708dad9857b0b%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638061464593637797%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Or3mKQsyPBdl1t9C6uz%2BqpjO4X%2Fs3QGYXjxNFOH23%2Fs%3D&reserved=0
- References:
- [EP-tech] How can i delete thousands of fake users?
- From: SGI Support | OST - Ostschweizer Fachhochschule <sgi-support@ost.ch>
- [EP-tech] How can i delete thousands of fake users?
- Prev by Date: [EP-tech] How can i delete thousands of fake users?
- Next by Date: Re: [EP-tech] How can i delete thousands of fake users?
- Previous by thread: [EP-tech] Sort view with creators_name and corp_creators
- Index(es):