#!/bin/bash # Define the URL for the Google logo URL="https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png" # Function to ping the URL ping_url() { echo "Pinging $URL" curl -s -o /dev/null -w "%{http_code}\n" "$URL" } # Infinite loop to ping at different intervals while true; do # Ping the URL ping_url # Wait for 5 minutes echo "Waiting for 5 minutes..." sleep 300 # Ping the URL ping_url # Wait for 10 minutes echo "Waiting for 10 minutes..." sleep 600 # Ping the URL ping_url # Wait for 15 minutes echo "Waiting for 15 minutes..." sleep 900 done
Flag Description -A, --user-agent <string> Specifies the User-Agent string to send to the server. -b, --cookie <data> Sends cookies to the server. Can be a string or a file name. -c, --cookie-jar <file> Writes cookies to the specified file after the transfer. -d, --data <data> Sends data in a POST request. Can be used with application/x-www-form-urlencoded or application/json (with -H ). -F, --form <name=content> Submits form data. Useful for file uploads and multipart forms. -G, --get Forces curl to use the GET method instead of POST when -d is used. -H, --header <header> Adds a custom header to the request. Multiple h...
-- show line numbers of the lines in a file cat -n <file_name> creating a file cat > testing enter content quite -- testing file is created Create a copy of the file cat StudentData > StudentData Merging two files and creating a new file. cat <file1> <file2> > totaldata.txt append a content of a file to a existing file cat <file_name> >> <file_name> showing a file in reverse order -- cat command now becomes tac tac <file_name> list files ls -ltr list all files in human readable format ls -ltrh display files ignoring blank lines cat -n -b <file_name> -b // skips blank lines head command to show only first 10 lines from a file head <file_name> first 10 line display first 20 lines from a file head -n 20 <file_name> or head -20 <file_name> display 200 bytes of data from this file head -c <file_name> skip last 28 lines head -n -28 l...
Comments
Post a Comment