problem with command sftp


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers problem with command sftp
# 1  
Old 01-20-2010
problem with command sftp

Hi,

I am entering this line in a .sh

Code:
sftp -b operacionesftp.batch ${USER_FTP_SALIDA}@${FTP_SALIDA}

but it seems to take only "b" and not "-b" may be due to?

Greetings.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Linux

Problem with SFTP Command line, "@" in username.

Hi Guys Any help is appreciated very much! I'm trying to use SFTP to an external server using the native SFTP Client in RHEL 6 and 7. I've been given a username on the remote SFTP Server of myemail@myorg.com. I can not seem to escape that @ sign no matter what I do. I've tried these... (16 Replies)
Discussion started by: BG_JrAdmin
16 Replies

2. UNIX for Beginners Questions & Answers

SFTP problem

i have a problem no a dream :) i have a list and i want to do : cat lista_olo for file in `cat list` do sftp myuser@myip << EOF ls -l mydir/$file/ EOF but there is an error . Syntax error at line 11 : `<' is not matched How can i do ? Regards. (1 Reply)
Discussion started by: Francesco_IT
1 Replies

3. Shell Programming and Scripting

Problem with sftp

I have an sftp script which is uploading file into a directory which is not specified wth the cd command . For example: sftp sftpserver >>lcd /abc >>cd /tmp/bef >> put /abc/abc.txt /tmp/bef/abc.txt Uploading file from /abc/abc.txt to /xyz/wxy/tmp/bef/abc.txt >>quit The file is getting... (2 Replies)
Discussion started by: NP1
2 Replies

4. Shell Programming and Scripting

Problem using sftp

I want to execute shell script with in sftp session for remote server. like i have a shell script test.sh that is on local server.i want to execute like sftp user@192.168.56.10 sftp> test.sh ---execute for remote server not for local server. Please help me for this issue (2 Replies)
Discussion started by: SAUD PASHA
2 Replies

5. Shell Programming and Scripting

SFTP-how to log individual sftp command error while executing shell script

Hi, I have situation where i need to automate transferring 10000+ files using sftp. while read line do if ; then echo "-mput /home/student/Desktop/folder/$line/* /cygdrive/e/folder/$line/">>sftpCommand.txt fi done< files.txt sftp -b sftpCommand.txt stu@192.168.2.1 The above... (1 Reply)
Discussion started by: noobrobot
1 Replies

6. Shell Programming and Scripting

Problem with SFTP...

Hi, Here is my problem::confused: Daily my ETL process will create 4 (Four) Flatfiles in unix box. Upon creation of the flatfiles, I need to do "SFTP" the files to a "Remote Server". Sometimes While doing SFTP, the files get trucated due to it's size. Now I would like to design a Korn... (3 Replies)
Discussion started by: npk2210
3 Replies

7. UNIX for Advanced & Expert Users

Problem using sftp

Hi my sftp batch run connect to the server and transfer the txt file to target server. but when I run again same batch with same file it give error. Any idea about this error..... regards Jamil edit by bakunin: please do not "hijack" threads. That is: if you have a genuine... (1 Reply)
Discussion started by: Jamil Qadir
1 Replies

8. Shell Programming and Scripting

problem with SFTP

Hi, I am doing a FTP from a Unix host to a windows host. I have generated the key in my unix server and added them in the destination host. In the Destination they changed the ip address now i am not able to connect. I can see it is reaching till that server but i am not receiving that server... (2 Replies)
Discussion started by: Krrishv
2 Replies

9. Shell Programming and Scripting

sftp problem

Hi I need to perform the following task using shell script. establishing a sftp connection to a server. then get the latest file from there to our own server. But i am not finding ny suitable command in sftp console to get the latest file. can anyone help me in this reagrd. if ny other... (1 Reply)
Discussion started by: UBD
1 Replies

10. Shell Programming and Scripting

sftp problem

Hi, I have a folder ABC. I have sftp executing from this folder successfully to other servers using keys which avoids passowrd prompt. The permissions for the folder are only for user.ie drwx------ But i need another id to access my folder and execute the scripts. So i changed the access... (2 Replies)
Discussion started by: borncrazy
2 Replies
Login or Register to Ask a Question
SSH2_SFTP_MKDIR(3)							 1							SSH2_SFTP_MKDIR(3)

ssh2_sftp_mkdir - Create a directory

SYNOPSIS
bool ssh2_sftp_mkdir (resource $sftp, string $dirname, [int $mode = 0777], [bool $recursive = false]) DESCRIPTION
Creates a directory on the remote file server with permissions set to $mode. This function is similar to using mkdir(3) with the ssh2.sftp:// wrapper. PARAMETERS
o $sftp - An SSH2 SFTP resource opened by ssh2_sftp(3). o $dirname - Path of the new directory. o $mode - Permissions on the new directory. o $recursive - If $recursive is TRUE any parent directories required for $dirname will be automatically created as well. RETURN VALUES
Returns TRUE on success or FALSE on failure. EXAMPLES
Example #1 Creating a directory on a remote server <?php $connection = ssh2_connect('shell.example.com', 22); ssh2_auth_password($connection, 'username', 'password'); $sftp = ssh2_sftp($connection); ssh2_sftp_mkdir($sftp, '/home/username/newdir'); /* Or: mkdir("ssh2.sftp://$sftp/home/username/newdir"); */ ?> SEE ALSO
mkdir(3), ssh2_sftp_rmdir(3). PHP Documentation Group SSH2_SFTP_MKDIR(3)