-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
272172e
commit f530a09
Showing
3 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
count=0 | ||
|
||
while [ $count -lt 30 ]; do | ||
# Generate a random number between 1 and 100 | ||
random_number=$((RANDOM)) | ||
sleep_time=$(awk -v min=0.1 -v max=2 -v seed="$RANDOM" 'BEGIN{srand(seed); print min+rand()*(max-min)}') | ||
|
||
# Print the random number | ||
echo "Sleep Time: $sleep_time" | ||
|
||
# Increment the count | ||
((count++)) | ||
|
||
# Sleep for 1 second | ||
sleep $sleep_time | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
$(echo $TSP_WEB_TS_BIN) -L "Live Log" $(pwd)/test/programs/live_log.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
$(echo $TSP_WEB_TS_BIN) -L Scheduling sleep 30 | ||
$(echo $TSP_WEB_TS_BIN) -L Scheduling sleep 30 | ||
$(echo $TSP_WEB_TS_BIN) -L Scheduling sleep 30 | ||
$(echo $TSP_WEB_TS_BIN) -L Scheduling sleep 30 |