Sponsored Content
Full Discussion: Sosftp file transfer
Top Forums Shell Programming and Scripting Sosftp file transfer Post 303009102 by shaileshg on Friday 8th of December 2017 04:10:31 PM
Old 12-08-2017
Sosftp file transfer

I want to transfer file to remote location via sosftp but its not source and target directory is not getting resolved due to characters in folder name.

Code:
REMOTE_DIR="/opt/tibco/data/transfer/uploads/Week 1/ABC XYZ (ID #: 2)/SR Week 1 (ID #: 17)/Proofing - Round 2 2 (ID #: 24)"
LOCAL_DIR="/transfer/uploads/Week 1/ABC XYZ (ID #: 2)/SR Week 1 (ID #: 17)/Proofing - Round 2 2 (ID #: 24)"

Filename = 'test_17_1208.pdf'

Command used :-
Code:
/opt/tibco/apps/sosftp/jade/client/bin/sosftp_transfer.sh -o send -e ${PROFILE} -fp $(basename "$i") -ld "${LOCAL_DIR}" -rd "${REMOTE_DIR}" >> ${LOG_FILE} 2>&1

Error:-

Code:
+------------Source------------
  | Protocol              = local
  | Host                  = XXXXXX.com
  | Directory             = opt/tibco/data/transfer/uploads/Week/
  | FilePath              = test_17_1208.pdf
  | ErrorWhenNoFilesFound = true
  | Recursive             = false
  | Remove                = false

Code:
+------------Target------------
  | Protocol              = sftp
  | Host                  = YYYYYY.com
  | User                  = user
  | AuthMethod            = password
  | Password              = ***
  | Directory             = /transfer/uploads/Week/
  | OverwriteFiles        = true


Code:
959 [main] INFO com.sos.VirtualFileSystem.SFTP.SOSVfsSFtpJCraft  - SOSVfs-D-0101: Try to connect to host YYYYY.com at Port '22'.
2239 [main] INFO com.sos.VirtualFileSystem.SFTP.SOSVfsSFtpJCraft  - SOSVfs_D_133: user 'ahold' logged in.
2326 [main] INFO com.sos.DataExchange.SOSDataExchangeEngine  - 0 files found.
2328 [main] INFO JadeReportLog  - SOSJADE_E_0101: data transfer ended with error 'SOSJADE_E_0099: No files found for file_path 'test_17_1208.pdf''
com.sos.JSHelper.Exceptions.JobSchedulerException: SOSJADE_E_0099: No files found for file_path 'test_17_1208.pdf'


Moderator's Comments:
Mod Comment Please use CODE tags as required by forum rules!

Last edited by RudiC; 12-08-2017 at 05:30 PM.. Reason: Added CODE tags.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

transfer multiple file

Pls anybody can tell me, how to transfer multiple files through ftp in unix (7 Replies)
Discussion started by: ajay234
7 Replies

2. Shell Programming and Scripting

file transfer

hi all how do i copy a file from one server to another thanks bkan77 (4 Replies)
Discussion started by: bkan77
4 Replies

3. UNIX for Dummies Questions & Answers

Transfer the file

Dear all, Can anybody let me know how to automate a file transfer process to a remote m/c thru SFTP , automate means it will not prmpt for password. how i am going to achive this....and what all methods are available or tools are available ???? (2 Replies)
Discussion started by: manas_ranjan
2 Replies

4. Shell Programming and Scripting

File transfer

Hi All, it might not be an sound question, i have two server like A and B.. i want to transfer file from B to A ..here i have some questions.. 1) do we need to create private and public key to connect..and transferring files...from B to A..? 2) i tried with scp options like... (2 Replies)
Discussion started by: Shahul
2 Replies

5. Programming

File Transfer over Sockets

Hello there !!!!!!!!! I got some problems trying to transfer a file through sockets. The Server must be in Java and the Client in C++ I came up with this code for the server : BufferedInputStream input; BufferedOutputStream output; public void send_data() throws IOException { ... (7 Replies)
Discussion started by: mcnikolas
7 Replies

6. Programming

File transfer in C

HI Can anyone provide me with codes for file transfer server to client or vice versa? Also please explain how to compile those programs in ubuntu terminal as i am totally new to socket programming. Thanks (0 Replies)
Discussion started by: mayhemtrigger
0 Replies

7. Shell Programming and Scripting

How to transfer file from one PC to another using PERL?

Hi All I have two PC connected with each other via LAN cable. In one of the PC the Perl is installed. What I want to do is transfer the data from one PC to another via Perl. Is it possible to do this. ---------- Post updated at 11:31 PM ---------- Previous update was at 07:01 AM ----------... (10 Replies)
Discussion started by: parthmittal2007
10 Replies

8. Shell Programming and Scripting

Avoiding file overwrite during file transfer using scp

Hi, I have written a small script to transfer a file from one unix server to other using scp command which is working fine. As I know with scp, if any file with the same name is already present on destination server, it would get overwritten without any notification to user. Could anyone help me... (14 Replies)
Discussion started by: dsa
14 Replies

9. UNIX for Advanced & Expert Users

SCP File Transfer

On unix AIX server, when I am trying to transfer file from one directory to another directory on the same server through a program(where i call the script) it gives error "Lost Connection". (5 Replies)
Discussion started by: Pash
5 Replies

10. UNIX for Advanced & Expert Users

File transfer

When using FTP to transfer a file from IBM iSeries family of servers client to a non IBM Iseries family server, files might have characters appear in the wrong format Eg | in Iseries and while transferring fro Iseries system to Linux , but instead of | it is showing as ?. Please advise (3 Replies)
Discussion started by: sudhainit
3 Replies
All times are GMT -4. The time now is 09:46 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy