It would be best to just run it in IDLE on the server so you can see the error message and let us know what it is instead of trying to test it from task scheduler.
I would say the next biggest problem one typically runs into is usually licensing. Often the workstation (Windows 7) usually has ArcGIS Desktop on it and often the server does not have ArcGIS Desktop because it is a waste of a desktop license to put it on a server, and as a result, when you try to import an ESRI library (like arcgisscripting and arcpy) on the server, it fails because there is no license.
Gustavo:
On the Windows 2008 Server, do you have the Scheduled Task configured with the following settings:
1.)Run whether user is logged in or not
2.)Run with highest privileges
Are you running the python script directly from the Task Scheduler or are you calling the python script from a bat file?
Can you provide a screenshot of the Edit Action Properties for the scheduled task?
What version of ArcMap are you using?
Can you provide the screenshot that I asked for in a previous post? I would like to see exactly how you are calling the python script directly.
Do you have ArcGIS Server software installed on this machine as well?
import time, sys, arcpy licFlag = False time1 = time.clock() time2 = time.clock() while licFlag == False or ((time2 - time1) / 3600) < 2): time2 = time.clock() if arcpy.CheckProduct('ArcInfo') == 'Available': licFlag = True else: time.sleep(10) if licFlag == False: sys.exit(1) #give up