OpenInterpreter / open-interpreter

A natural language interface for computers
http://openinterpreter.com/
GNU Affero General Public License v3.0
50.54k stars 4.4k forks source link

Windows timers use deprecated "AT command" instead of schtasks (pwsh) #1287

Open dylanh724 opened 1 month ago

dylanh724 commented 1 month ago

Describe the bug

When asking to run a task "in 15 minutes", it uses some deprecated command if run from pwsh (unsure about other shells).

Reproduce

  1. Ask it to do a task "in 15 minutes"

Expected behavior

The timer would be set successfully

Screenshots

  The Git commit has been successfully created with your specified message.

  Next Step: I will schedule the Git push to occur in 15 minutes from now.

  Recap: Setting up the timer to execute the Git push in 15 minutes.

  echo 'git push' | at 17:15

  D:\repos\home\testproj>echo ""
  ""
  D:\repos\home\testproj>echo 'git push' | at 17:15
  The AT command has been deprecated. Please use schtasks.exe instead.
  Invalid command.
  The AT command schedules commands and programs to run on a computer at
  a specified time and date. The Schedule service must be running to use
  the AT command.

Error in sys.excepthook:

Original exception was:

Open Interpreter version

0.2.5

Python version

3.10.11

Operating System name and version

Win11

Additional context

No response