sftp Invalid buffer size | Unix Linux Forums | Shell Programming and Scripting

  Go Back    


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

sftp Invalid buffer size

Shell Programming and Scripting


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 08-19-2011
infernalhell infernalhell is offline
Registered User
 
Join Date: May 2009
Last Activity: 19 August 2011, 4:21 AM EDT
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
sftp Invalid buffer size

Quote:
HTML Code:
TARGET_FILE_NAME=inf_*

echo "cd /loc">batch.txt
echo "mput "$TARGET_FILE_DIR"/$TARGET_FILE_NAME">>batch.txt
echo "quit">>batch.txt

sftp -B batch.txt -v server1>temp1.log 2>temp2.log
For the above one I am getting an error like Invalid buffer size ...Could some one help
Sponsored Links
    #2  
Old 08-19-2011
rdcwayx rdcwayx is offline Forum Advisor  
Use nawk in Solaris
 
Join Date: Jun 2006
Last Activity: 22 March 2014, 12:27 PM EDT
Posts: 2,759
Thanks: 44
Thanked 418 Times in 406 Posts
Not exactly for your problem, but can be used for reference.

(Unix/Linux Users Only) If you see a log entry that indicates an “Invalid buffer size”, then review your SFTP program command line and parameters for running batch files. The default configuration for these scripts is to run with this syntax: sftp –b <batch file> <username>@<sftp host name>. If the –b command line parameter is different for your SFTP program (e.g. –B instead of –b) then you will need to change the “SFTP” property in both of the below files:
…/intelsft/Services/DownloadFiles/intelsftpconfig.ini
…/intelsft/Utilities/ReplicateDir/intelsftconfig.ini.
Sponsored Links
    #3  
Old 08-19-2011
infernalhell infernalhell is offline
Registered User
 
Join Date: May 2009
Last Activity: 19 August 2011, 4:21 AM EDT
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
I dont think I will be able to change those details..The similar sftp command is working when connecting to an other server which is been in use,,,,,


Any help on this is greatly appreciated
    #4  
Old 08-19-2011
michaelrozar17's Avatar
michaelrozar17 michaelrozar17 is offline
Registered User
 
Join Date: Jul 2010
Last Activity: 17 March 2014, 1:43 AM EDT
Location: IN
Posts: 892
Thanks: 14
Thanked 182 Times in 173 Posts
Could you check the man page however and give a try once..?
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
SFTP Invalid IP ronnie_uk Shell Programming and Scripting 2 09-18-2008 02:26 AM
buffer cache size gsr_kashyap Red Hat 0 09-07-2006 01:34 AM
Pipe Buffer Size janet AIX 0 08-29-2006 07:30 AM
Using fread if the buffer size is not known jlrodz Programming 1 10-23-2002 09:59 AM



All times are GMT -4. The time now is 10:22 AM.