Skip to main content

Posts

Showing posts with the label crontab

how to configure crontab to run a script in every 30 seconds

 Crontab is designed to run tasks at specified intervals, but it does not support intervals shorter than one minute. To run a script every 30 seconds, you can use a combination of crontab and a loop in your script. Here's how to do it: Open the crontab editor by running the command crontab -e. Add the following line at the end of the file: javascript Copy code * * * * * /path/to/script.sh >/dev/null 2>&1 This will run the script every minute. Save and close the file. Open your script in a text editor and add a loop that sleeps for 30 seconds between each iteration. Here's an example script: bash Copy code #!/bin/bash while true do     # Add your script commands here     echo "Hello, world!"     sleep 30 done This script will print "Hello, world!" every 30 seconds. Save the script and make it executable by running the command chmod +x /path/to/script.sh. Run the script manually by executing the command /path/to/script.sh. This will start the l...

How to Share Folder On Network in WIN7 64 or 32 with security

Folder sharing on local network is quite easy today.        There are many process. But i will show the simple process, The basic thing you be remembered is security of the folder.   Process 1 :        Step 1: Select the file as you want to share. Right click on it. Go to properties.The below tab will                      open.                                   Now click on sharing.     Step 2: You will get the following image.                                                Step 3: Now click on Advance Sharing. Find " Share this Folder " and check the box .Now click                    on the "Permission" bu...