brea Posted September 29, 2011 Share 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 Link to comment Share on other sites More sharing options...
Xenobiologist Posted September 29, 2011 Share 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 Link to comment Share on other sites More sharing options...
brea Posted September 29, 2011 Author Share 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. Link to comment Share on other sites More sharing options...
brea Posted September 29, 2011 Author Share 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now