Re: Command-line does work when scheduled



On Sep 29, 3:19 pm, "Gabriel Genellina" <gagsl-...@xxxxxxxxxxxx>
wrote:
En Sat, 29 Sep 2007 17:34:34 -0300, Jim <jscre...@xxxxxxxxxxxxxx> escribi?:

I want to schedule a Python program that reads the command line for
input. However, when adding an argument to the command line Python
will not pick it up when using Windows scheduled tasks.

How do I get it to work?

Do you write the command line when defining the task? Using double quotes
around arguments with spaces?
It works fine for me.

--
Gabriel Genellina

I ran the following on the Scheduled Tasks:
"J:\Jim Crerar\MyPython\Zero_OE_Counter\Zero_OE_Counter.py" n
"J:\Jim Crerar\MyPython\Zero_OE_Counter\Zero_OE_Counter.py n"
"J:\Jim Crerar\MyPython\Zero_OE_Counter\Zero_OE_Counter.py" "n"
None of them work.
However, no problem with running from *.bat file or directly from
shortcut on my Desktop.
Thanks,
Jim

.



Relevant Pages

  • Re: Scheduled Tasks
    ... How To Troubleshoot Scheduled Tasks in Windows XP ... However, is it possible that the problem isn't with the task running, but that the program doesn't update the usage count when run from the command line? ... Copy the run command from your scheduled task and paste it into the Run box on the start menu and click OK. ...
    (microsoft.public.windowsxp.general)
  • Re: schtasks
    ... Notepad is just an example. ... You should note that scheduled tasks are meant to be run ... since notepad by its very nature is an interactive program. ... Show me your working command. ...
    (microsoft.public.win2000.general)
  • Re: schtasks
    ... Call your tasks Gogo1, Gogo2, Gogo3. ... Notepad is just an example. ... You should note that scheduled tasks are meant to be run ... Show me your working command. ...
    (microsoft.public.win2000.general)
  • Re: Cant schedule a batch file to run in the XP Pro Scheduler
    ... >> a shortcut on the desktop or from the command window directly. ... >> does NOT run fine is when I try to call the backup.bat batch file ... >> from the Windows XP task scheduler (Control Panel, Scheduled Tasks). ...
    (microsoft.public.windowsxp.perform_maintain)
  • Re: Forcing client logoff from the server
    ... If you are mostly concerned about the server, then you can use Scheduled Tasks or the ... AT command to schedule a stop of the server service and then a start of it when ... command, possibly as a startup script, to loggoff the user using something like the " ... there are security ...
    (microsoft.public.win2000.security)