Windows 任务计划程序的问题 [英] Problems with Windows Task Scheduler

查看:31
本文介绍了Windows 任务计划程序的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Windows 任务管理器有两个问题:一,我有一个 Python 脚本,它在运行结束时通过 gmail 发送电子邮件通知.这在我运行脚本本身时工作正常,但是当我通过 Windows 任务计划程序运行脚本时,脚本运行良好,但不发送电子邮件.为什么会发生这种情况?二、在远程桌面上通过任务调度程序运行相同的脚本时,当我登录时,但我的会话已关闭,firefox 不会打开.

I have two problems with Windows Task Manager: One, I have a Python script that sends an email notification, through gmail, at the end of the run. This works fine when I run the script itself, but when I run the script through Windows Task Scheduler, the script runs fine, but does not send an email. Why would this happen? Two, when running the same script through task scheduler on a remote desktop, when I am logged in, but my session is closed, firefox will not open.

任何帮助将不胜感激,谢谢.

Any help would be appreciated, thank you.

推荐答案

任务管理器不为当前用户显示任何 GUI.

The Task manager doesn't display any GUI for the current user.

您需要以系统身份登录.

You need to be login as system.

这篇关于Windows 任务计划程序的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆