The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
SFTP scripting - help required b0bbins Shell Programming and Scripting 8 09-27-2007 06:55 PM
Scripting multiple file "puts" in sFTP... Cbish68 Shell Programming and Scripting 5 07-02-2007 12:14 PM
sftp OrthoProof USA UNIX for Dummies Questions & Answers 1 06-09-2006 04:44 PM
difference between AIX shell scripting and Unix shell scripting. haroonec Shell Programming and Scripting 2 04-12-2006 09:12 AM
scripting guru's pls help me with scripting on AIX thatiprashant Shell Programming and Scripting 1 01-20-2006 07:58 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 02-23-2005
New_Guru New_Guru is offline
Registered User
  
 

Join Date: Feb 2005
Posts: 5
Question sftp scripting

I am totally new to this forum so if I am asking this and it has already been asked I apologize, but I have yet to have time to figure out how to search effectively for answers in previous posts. I'll figure it out tomorrow I just wanted to get this out there in case there is someone with this knowledge just bubbling out of their head aching to share it.

ANYWAY:

I am trying to script an sftp cron job. My first hurdle was to get key authentication working so I wouldn't have to deal with the issues surrounding giving it a password from within a script. That was fun, and it works now. I was trying to treat it like ftp and use the EOF arguments to get it to read the commands but it is not working. Do I have to use a batch file to send commands to sftp in a script? If so does anyone know where I could get some examples of how to do that (ie make a batch file). Or if I don't have to use a batch file could someone point me toward some examples of how to script commands for sftp.
Thanks in advance,
New_Guru
  #2 (permalink)  
Old 02-25-2005
RTM's Avatar
RTM RTM is offline Forum Advisor  
Hog Hunter
  
 

Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
See scripting sftp - their example should get you going.
  #3 (permalink)  
Old 03-01-2005
New_Guru New_Guru is offline
Registered User
  
 

Join Date: Feb 2005
Posts: 5
Thanks RTM

I figured this out on my own before I had a chance to come back and check here again for a response. But thanks anyway, I was beginning to think this was one of those boards full of stuck up people who never answered the "new guys" questions. Glad to see it isn't.
Thanks again.
  #4 (permalink)  
Old 03-01-2005
dangral dangral is offline Forum Advisor  
Registered User
  
 

Join Date: Oct 2002
Posts: 699
We love new guys here.
In the future, if you figured something out, don't forget to post back what you did so you can help the next "new guy."
  #5 (permalink)  
Old 03-01-2005
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,131
To expand on dangral's remarks, the reason for the meager response is that we don't seem to have users with much experience in scripting sftp. When RTM mentioned that excellent link, I linked this thread to ftp scripting faq. We always appreciate it when a user who solves his own problem posts that solution here for the benefit of others. But that is especially true of this thread.
  #6 (permalink)  
Old 03-01-2005
thumsup9 thumsup9 is offline
Registered User
  
 

Join Date: Jan 2005
Posts: 97
Quote:
Originally Posted by New_Guru
I figured this out on my own before I had a chance to come back and check here again for a response. But thanks anyway, I was beginning to think this was one of those boards full of stuck up people who never answered the "new guys" questions. Glad to see it isn't.
Thanks again.
Absolutely ! You are indeed with the best group.
  #7 (permalink)  
Old 12-12-2005
Phantom_Phixer Phantom_Phixer is offline
Registered User
  
 

Join Date: Dec 2005
Location: New Jersey
Posts: 2
What was the solution you came up with? I have a similar need and have not found any way to get this working.

Please post your script. Thanks
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:41 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0