Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2017
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. #!/bin/sh
  2. . /usr/local/agentlite/utils/agent_util.sh
  3.  
  4. echo "Example file to show how to use the util method to send message to CloudCenter during execution of script"
  5. echo "Source the file agent_util.sh with absolute path, as done in this file's first line"
  6. echo "Invoke the function actionSendMessage with your custom message inside quotes whenever any status message has to be sent to CloudCenter"
  7.  
  8. ans=$(( 2 + 5))
  9. echo $ans
  10. actionSendMessage "Result of addind 2 and 5 : $ans"
  11. sleep 5
  12. actionSendMessage "Woke up from Sleep .. will sleep again"
  13. sleep 5
  14. actionSendMessage "Woke up from Sleep"
  15. echo "Done executing"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement