Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

timestamp in bash

timestamp=`date +%Y%m%d%H%M%S`
curl -s http://mywebsite.com/myscript.txt -o /tmp/.myscript.${timestamp}.tmp
bash /tmp/.myscript.${timestamp}.tmp
rm -f /tmp/.myscript.${timestamp}.tmp
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #timestamp #bash
ADD COMMENT
Topic
Name
7+4 =