LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-04-2013, 08:18 PM   #1
Sam-IQ
LQ Newbie
 
Registered: Sep 2013
Posts: 2

Rep: Reputation: Disabled
PSCP without Putty session open


I'm trying to run PSCP from an SQL server agent job which runs a vb script using a call to the pscp executable. The job runs and completes successfully but no files are transferred to the remote server. If I open a putty session and connect to the remote server then run the sql agent job the job successfully transfers the file. Do I need putty opened and connected? The file is on a windows server transferring to a Linux server.
 
Old 09-09-2013, 10:44 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Have you tried running the pscp command from a DOS box to see what errors (if any) are happening? IIRC you shouldn't need a putty session open.
 
1 members found this post helpful.
Old 09-09-2013, 11:04 PM   #3
Sam-IQ
LQ Newbie
 
Registered: Sep 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks for that Steve. I decided not to use sql server agent job and changed the vb script to be run by windows scheduler instead. This works great!
 
Old 09-10-2013, 01:30 PM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
That's good news - I'm glad you got it working
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Does open process continue to work if Putty session is closed? davidlu766 Linux - Software 11 04-15-2010 04:47 PM
Help Needed with putty session damoh Linux - Newbie 11 05-10-2009 10:39 AM
Putty disconnects session. groxy Linux - Software 1 03-20-2009 05:33 AM
putty saved session melvinong Linux - Server 4 11-14-2007 05:33 AM
PuTTY pscp HELP! Joelseph Linux - Software 2 01-20-2004 02:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration