RE: Problem with subprocess.call and windows schtasks

2012-11-23 Thread Prasad, Ramit
Dave Angel wrote: > > On 11/20/2012 06:41 PM, Tom Borkin wrote: > > (Please don't top-post. Now we lose all the context) > > Using shlex, I now have this: > > #!\Python27\python > > import os, subprocess > > path = os.path.join("C:\\", "Program Files", "Apache Group", "Apache2", > > "htdocs", "c

Re: Problem with subprocess.call and windows schtasks

2012-11-21 Thread Tom Borkin
On Wed, Nov 21, 2012 at 6:01 AM, Tim Golden wrote: > subprocess.call([ > 'SchTasks', '/Create', > '/SC', 'ONCE', > '/TN', 'test', > '/TR', path, > '/ST', '23:50' > ]) > Thank you. Yes, it was the quoting of "test". Oops :-} Thanks again, Tom -- http://mail.python.org/mailman/listinfo/p

Re: Problem with subprocess.call and windows schtasks

2012-11-21 Thread Tim Golden
On 20/11/2012 23:41, Tom Borkin wrote: > Using shlex, I now have this: > #!\Python27\python > import os, subprocess > path = os.path.join("C:\\", "Program Files", "Apache Group", "Apache2", > "htdocs", "ccc", "run_alert.py") > #subprocess.call(['SchTasks', '/Create', '/SC', 'ONCE', '/TN', '"test"',

Re: Problem with subprocess.call and windows schtasks

2012-11-20 Thread Dave Angel
On 11/20/2012 06:41 PM, Tom Borkin wrote: (Please don't top-post. Now we lose all the context) > Using shlex, I now have this: > #!\Python27\python > import os, subprocess > path = os.path.join("C:\\", "Program Files", "Apache Group", "Apache2", > "htdocs", "ccc", "run_alert.py") > #subprocess.ca

Re: Problem with subprocess.call and windows schtasks

2012-11-20 Thread Tom Borkin
Using shlex, I now have this: #!\Python27\python import os, subprocess path = os.path.join("C:\\", "Program Files", "Apache Group", "Apache2", "htdocs", "ccc", "run_alert.py") #subprocess.call(['SchTasks', '/Create', '/SC', 'ONCE', '/TN', '"test"', '/TR', path, '/ST', '23:50']) subprocess.call(['Sc

Re: Problem with subprocess.call and windows schtasks

2012-11-18 Thread Chris Rebert
On Sun, Nov 18, 2012 at 5:48 AM, Tom Borkin wrote: > Hi, > I have this code: > > #!\Python27\python > > import subprocess > #subprocess.call(['SchTasks /Create /SC ONCE /TN "My Tasks" /TR "C:/Program > Files/Apache Group/Apache2/htdocs/ccc/run_alert.py" /ST 07:50'], shell=True) > subprocess.call([

Re: Problem with subprocess.call and windows schtasks

2012-11-18 Thread Tim Golden
On 18/11/2012 13:48, Tom Borkin wrote: import subprocess #subprocess.call(['SchTasks /Create /SC ONCE /TN "My Tasks" /TR "C:/Program Files/Apache Group/Apache2/htdocs/ccc/run_alert.py" /ST 07:50'], shell=True) subprocess.call(['SchTasks /Create /SC ONCE /TN "test" /TR "run_alert.py" /ST 07:50'],

Problem with subprocess.call and windows schtasks

2012-11-18 Thread Tom Borkin
Hi, I have this code: #!\Python27\python import subprocess #subprocess.call(['SchTasks /Create /SC ONCE /TN "My Tasks" /TR "C:/Program Files/Apache Group/Apache2/htdocs/ccc/run_alert.py" /ST 07:50'], shell=True) subprocess.call(['SchTasks /Create /SC ONCE /TN "test" /TR "run_alert.py" /ST 07:50']