errpt with param for yesterday and today

Hi All,

I would like to create a script with "errpt" that will read the date yesterday and today and execute this: "errpt -a -s yesterdaydatetime -e todaydatetime".

For example:

      >errpt -a -s 0604000008 -s 0605235908

Note: Time is fixed with start "0000" and end "2359". So read the month, day and year on the system.

Is this possible to create a script without passing a parameter.

Thanks in advance.

Best Regards to all of you,
itik