D
DGG
I have got a question arsing from my perl program.
Basically, I want to get the machine date and time, and display it on a
Tk label.
I am using ActivePerl, and running on DOS/Windows.
So I would use `date` to get the current date.
Though "date" has a silent mode. I am thinking in general, if assume
"date" only has an interactive mode. So after typing in "date", after
displaying the current date, the program also awaits an input (new date
setting or an ENTER) to complete.
As we are running inside a perl script, how can one imitate an
interactive input to feed into the program input?
Thanks guys
Basically, I want to get the machine date and time, and display it on a
Tk label.
I am using ActivePerl, and running on DOS/Windows.
So I would use `date` to get the current date.
Though "date" has a silent mode. I am thinking in general, if assume
"date" only has an interactive mode. So after typing in "date", after
displaying the current date, the program also awaits an input (new date
setting or an ENTER) to complete.
As we are running inside a perl script, how can one imitate an
interactive input to feed into the program input?
Thanks guys