Jump to content
Sign in to follow this  
brea

scp help

Recommended Posts

brea

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

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

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×