4259 links
  • Arnaud's links
  • Home
  • RSS Feed
  • Tag cloud
  • Login
search: tag:at — newest first
  • How can I use an at command in a shell script? - Stack Overflow

    at now +10 minutes <<< "rm -rf /tmp/tobedeleted"

    at now +1 minutes <<< "init 6"

    /etc/init.d/networking stop && /etc/init.d/networking start

    atq

    atrm 2

    For multiline, consider a "HERE-doc"

    at now +10 minutes <<ENDMARKER
    rm -rf /tmp/tobedeleted
    echo all done | mail -s 'completion notification' sysadmin@example.com
    ENDMARKER

    October 20, 2013 - permalink - http://stackoverflow.com/questions/15454199/how-can-i-use-an-at-command-in-a-shell-script
    at bash