I was wondering if somebody could tell me if there is a way to pass argument to a system command in AWK. Namely, let suppose that I want to print calendar for September-November of 2011. I can do that with

__________________religions, worst damnation of mankind"If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus TorvaldsLinux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”.vermaden's:linksresourcesdeviantartspreadbsd

__________________
The best way to learn UNIX is to play with it, and the harder you play, the more you learn.
If you play hard enough, you'll break something for sure, and having to fix a badly broken system is arguably the fastest way of all to learn. -Michael Lucas, AbsoluteBSD

Guys thank you so much. I realized how stupid I was as soon as I saw vermaden's answer. I cooked this based on your answers.

Code:

# This AWK script is written to automate generating of course calendar
# used for my syllabi
BEGIN {FS=" "; OFS="";
print "This program prints TeX calendar for the range of the months for the given year";
printf ("%s", "What is the year for which you want calendar? ") > "/dev/tty"
getline year < "/dev/tty";
printf ("%s", "Enter the first month for which you want calendar as number [1-12]. ") > "/dev/tty";
getline first_month < "/dev/tty";
printf ("%s", "Enter the last month for which you want calendar as number [1-12]. ") > "/dev/tty";
getline last_month < "/dev/tty";
{for (i=first_month; i<=last_month; i++)
system("cal" " " i " " year)}
}
{}

My goal is to automatically generate the snippet of TeX code which I use in my Syllabi. Something like follows just without lesson number (for examle without \tiny{6.6})

__________________religions, worst damnation of mankind"If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus TorvaldsLinux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”.vermaden's:linksresourcesdeviantartspreadbsd