Voting

Category

real language

Bookmarking

Del.icio.us Digg Diigo DZone Earthlink Google Kick.ie
Windows Live LookLater Ma.gnolia Reddit Rojo StumbleUpon Technorati

Language Cisco IOS Embedded Event Manager Applet

Date:07/02/12
Author:Bruno Klauser
URL:http://www.cisco.com/go/eem
Comments:0
Info:http://www.cisco.com/go/eem
Score: (3.02 in 43 votes)
event manager applet 99-bob
    description written by bklauser inspired by http://www.99-bottles-of-beer.net
    event none
    action 100 set b 99
    action 110 while $b gt 1
    action 120  puts "$b bottles of beer on the wall, $b bottles of beer."
    action 130  decrement b
    action 140  puts "Take one down, pass it around, "
    action 150  puts "$b bottles of beer on the wall.\n"
    action 160 end
    action 170 puts "$b bottle of beer on the wall, $b bottle of beer."
    action 180 puts "Take one down, pass it around, "
    action 190 puts "no more bottles of beer on the wall.\n"
    action 200 puts "No more bottles of beer on the wall, "
    action 210 puts "no more bottles of beer."
    action 220 puts "Go to the store and buy some more, "
    action 230 puts "99 bottles of beer on the wall.\n"
!
alias exec sing event manager run 99-bob

Download Source | Write Comment

Alternative Versions

Comments

Download Source | Write Comment

Add Comment

Please provide a value for the fields Name, Comment and Security Code.
This is a gravatar-friendly website.
E-mail addresses will never be shown.
Enter your e-mail address to use your gravatar.

Please don't post large portions of code here! Use the form to submit new examples or updates instead!

Name:

eMail:

URL:

Security Code:
  
Comment: