Command-line does work when scheduled

Jim jscrerar at compuserve.com
Sat Sep 29 18:17:49 EDT 2007


On Sep 29, 3:19 pm, "Gabriel Genellina" <gagsl-... at yahoo.com.ar>
wrote:
> En Sat, 29 Sep 2007 17:34:34 -0300, Jim <jscre... at compuserve.com> 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




More information about the Python-list mailing list