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
Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`" Lokesha UNIX for Dummies Questions & Answers 4 12-20-2007 01:52 AM
How to use "ssh secure shell" to setup rainbow_bean AIX 1 12-10-2007 05:21 PM
Can we have two versions of "sftp" on the same machine? val0822 SUN Solaris 2 12-10-2007 05:14 PM
Scripting multiple file "puts" in sFTP... Cbish68 Shell Programming and Scripting 5 07-02-2007 12:14 PM
No utpmx entry: you must exec "login" from lowest level "shell" peterpan UNIX for Dummies Questions & Answers 0 01-18-2006 04:15 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 12-10-2007
val0822 val0822 is offline
Registered User
  
 

Join Date: Dec 2007
Posts: 5
Help needed with secure shell "sftp"

I am using
sftp -V
sftp: F-Secure SSH 3.1.0 (build 12) on sparc-sun-solaris2.8

I think it's happening due to secure shell. I can not rename files with "get". As "get" is working fine with open shell sftp.

Here are the details about the problem:

"get" does not rename the file. It actually thinks I want to get “eieio” and “a1” from pontoon – it’s behaving like “mget”.

>sftp user1@pontoon

sftp> cd test

/home/vmmpprod/test

sftp> get eieio a1

test/a1: No such file or directory.

eieio | 0 kB | 0.0 kB/s | TOC: 00:00:01 | 100%

sftp> close

sftp> quit

We usually ftp large files and put them through "pipes" so that we do not have to store the big files. I tried using "scp". But it overwrites the pipe with physical file.

>mkfifo a1
>ls -lrt a1
prw-rw-r-- 1 appsw prod 0 Dec 10 10:56 a1
>more scp_test
#!/bin/ksh

scp user1@pontoon:$1 $2

exit_status=$?

return $exit_status

>scp_test test/eieio a1
eieio | 6B | 0.0 kB/s | TOC: 00:00:01 | 100%
>ls -lrt a1
-rw-rw-r-- 1 appsw prod 6 Dec 10 10:56 a1

Am I missing something here? Any help will be appreciated.

thanks
 

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:39 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