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
how to convert from korn shell to normal shell with this code? forevercalz Shell Programming and Scripting 21 11-23-2005 02:18 AM
KORN Shell - Spawn new shell with commands frustrated1 Shell Programming and Scripting 2 04-20-2005 03:23 PM
Korn Shell gpanesar Shell Programming and Scripting 4 03-25-2005 05:46 PM
Command ignored after sftp - korn shell alienET Shell Programming and Scripting 1 03-24-2005 05:06 PM
korn shell + sftp + list files alienET Shell Programming and Scripting 1 03-24-2005 11:12 AM

 
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
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 06-09-2009
singhald singhald is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 15
SFTP using korn shell

Hi All,

I am able to SFTP files using the below command in my script.

sftp -b test.bat $user@$IP << EOF

i have written the following command in the test.bat file

put /home/user1/testfile.txt /ftpdata/out/
quit

i am able to sftp the testfile.txt from one server to another. could any one suggest me how can i incorporate the test.bat file contents into main script only. acutlly i dont want to use one more file which contians the ftp command.

Thanks in Advance

Singhal
 

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 07:38 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