79443661

Date: 2025-02-16 18:00:07
Score: 1
Natty:
Report link

# Subject: Internal script counter with VARIABLE.

# Example: time of file download, and so on.

now=$(date +'%s')sec;

echo ""

echo "[INF] Running script..."

echo ""

# The sleep timer command contains by default the running time in a probative form which by a comparison between the output and itself if the output is correct and the output time was printed correctly.

# Timmer command, Input: 5 seconds.

sleep 5s

InfTimExe=$(TZ='UTC' date --date now-$now +"%Hhours:%Mmins.%Ssecs")

# Output: 5 seconds.

echo "[INF] Internal run time of the script: $InfTimExe"

echo ""

exit

Code/JPG

Execution/JPG

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Wolfkrypter