first commit
This commit is contained in:
14
hello_world.sh
Executable file
14
hello_world.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Total duration in seconds (10 minutes * 60 seconds)
|
||||
DURATION=$((10 * 60))
|
||||
# Interval between messages in seconds
|
||||
INTERVAL=5
|
||||
# End time calculation
|
||||
END_TIME=$((SECONDS + DURATION))
|
||||
|
||||
# Loop until the current time is less than the end time
|
||||
while [ $SECONDS -lt $END_TIME ]; do
|
||||
echo "Hello world - from bash!"
|
||||
sleep $INTERVAL
|
||||
done
|
||||
Reference in New Issue
Block a user