brea 0 Posted September 29, 2011 I have a script I've written to parse some data, format it and then use scp to transfer it through a session to a remote host for further processing. When I run the process manually it works just fine however when I schedule it using task scheduler the scp process fails. I've tried running the scp portion using @comspec and through a batch file. Both work manually. Thanks for any help Share this post Link to post Share on other sites
Xenobiologist 47 Posted September 29, 2011 Where is your code? Maybe you are using commands which need the "Desktop" like Send or something. Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Share this post Link to post Share on other sites
brea 0 Posted September 29, 2011 That's probably the issue because I'm running a console which might need the desktop. I'll look into that. The code is a simple runwait with hooks to call the apropriate backend script. Share this post Link to post Share on other sites
brea 0 Posted September 29, 2011 Thanks. That helped me figure it out that it was more focused on the scp application and not the script. When I ran it manually I ran it from the folder where the script is however my hook didn't have the proper path in it so when it ran by the system it couldn't find the script file to run the commands. Share this post Link to post Share on other sites