Delete files on Linux using a scheduled Cron job

A simple but useful script for periodically removing files in your Linux server. Testing the command Lets test the command for deleting old files. Create the /test_script directory: Create a test file: Now we can try to delete all files on /test_script running the command: If we run ls -la /test_script we will see that the file is still there, …

Asynchronous URL checking

A simple but powerful script for checking thousands of urls asynchronously in just a few seconds. The script uses Asyncio and the aiohttp library. Installing aiohttp library To obtain aiohttp just type: Asynchronous url checking script Asyncio will execute the run() function, using Semaphore for limiting the maximum number of connections/sockets to 1000. The run() function will execute bound_fetch() which …