Sponsored Content
Top Forums Shell Programming and Scripting SFTP STDERR includes the acknowledgement Post 302421905 by The One on Monday 17th of May 2010 03:52:29 AM
Old 05-17-2010
SFTP STDERR includes the acknowledgement

I have this problem on my SFTP script. When you direct the standard error to a file, it also contains the acknlowledgement. See below:

sftp.log
Code:
Connecting to xxx.xxx.xxx

This computer is property of x company and is intended on...

Connecting to xxx.xxx.xxx


This computer is property of x company and is intended on...

The result is like this even if there's no error during file transmission. This gives me headache because this file is supposed to be zero byte for the script to recognize that there's no error. Is there any way to remove this acknowledgement?

Any help is greatly appreciated.. thanks
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Dynamic includes file for tar command

I'm writing a script to tar a list of log files. The tar command calls an includes file, which lists all of the log files that I want. My apache web server, however, creates a log file every day with the datestamp (mmddyy) at the end of it. I want the includes file to get the previous day's... (1 Reply)
Discussion started by: kadishmj
1 Replies

2. UNIX for Dummies Questions & Answers

file acknowledgement.

Hi gurus, I am getting files from my customer, he is ftping those files to our server. how can i determine, or acknowledge to the customer that file is recieved. i.e, how do i know whether file i recieved is completly transferred., Thank you Raj (1 Reply)
Discussion started by: raj_ind
1 Replies

3. UNIX for Advanced & Expert Users

..to check if a line includes a subline..?

What would be the best way to check if a particular line (in variable) has an another line (more than 1 char)? I understand it could be done with 'grep', 'sad', 'awk', by parameter expansion, but all these seems to me havy, worldy, not elegant and overhead in processing For so common task... (2 Replies)
Discussion started by: alex_5161
2 Replies

4. Shell Programming and Scripting

passing string which includes metacharacters

I'm trying to create a bash script that takes a URL as one of its arguments like this: ./script.sh http://url.cfm?asdf&asdf=234 variable=$1 echo $variable I'm having trouble storing the URL because it contains the meta character "&" which is being interpreted... thus when I run the... (4 Replies)
Discussion started by: kds1398
4 Replies

5. Programming

Multi-platform includes?

I know that <cstudio> can also be <stdio> and can be written different ways on Linux then with windows. I've see some code doing a IFDEF __APPLE__ (I'm guessing, if compiled on a mac do whats between this) Is there one for Linux/Window? (3 Replies)
Discussion started by: james2432
3 Replies

6. Shell Programming and Scripting

how to search for string that includes folder separator ?

I want to select only second line. I want to search for any line that has both -> input.txt /userA/aaaaaaabbb/jakarta /userA/aaaaaaa/jakarta /userB/aaaaaaabbb/jakarta /userB/aaaaaaa/jakarta This command does have effect of --> $>cat input.txt | /usr/xpg4/bin/grep -E... (13 Replies)
Discussion started by: kchinnam
13 Replies

7. Programming

Makefile + #includes

Dear all I try to write a makefile for my code which have many source files, 1 header file that i make and exist into same folder with other source files and some other header files (by libraries witch i use) that found in other folders. In my header file i have put all other #includes for... (3 Replies)
Discussion started by: panou
3 Replies

8. Programming

acknowledgement in client side with JMS and AMQP

Hi guys, I have two questions about acknowledgement in client side with JMS and AMQP: 1. what happens if we set CLIENT_ACKNOWLEDGE in producer side in JMS? 2. if basic.publish finishes executing and there is no exception thrown, this means message has been received in message server? or we... (0 Replies)
Discussion started by: majid.merkava
0 Replies

9. Shell Programming and Scripting

How to pipe a filename that includes a date?

How do I pipe the output of something to a filename that includes the date, in a specific date format? Here's the goal. Output a script to a file periodically during the day: ./script.sh >>logname_yyyy-mm-dd.logAnd when the next day comes, it starts logging to a new filename because the date... (2 Replies)
Discussion started by: nbsparks
2 Replies
libssh2_sftp_unlink_ex(3)					  libssh2 manual					 libssh2_sftp_unlink_ex(3)

NAME
libssh2_sftp_unlink_ex - unlink an SFTP file SYNOPSIS
#include <libssh2.h> #include <libssh2_sftp.h> int libssh2_sftp_unlink_ex(LIBSSH2_SFTP *sftp, const char *filename, unsigned int filename_len); int libssh2_sftp_unlink(LIBSSH2_SFTP *sftp, const char *filename); DESCRIPTION
sftp - SFTP instance as returned by libssh2_sftp_init(3) filename - Path and name of the existing filesystem entry filename_len - Length of the path and name of the existing filesystem entry Unlink (delete) a file from the remote filesystem. RETURN VALUE
Return 0 on success or negative on failure. It returns LIBSSH2_ERROR_EAGAIN when it would otherwise block. While LIBSSH2_ERROR_EAGAIN is a negative number, it isn't really a failure per se. ERRORS
LIBSSH2_ERROR_ALLOC - An internal memory allocation call failed. LIBSSH2_ERROR_SOCKET_SEND - Unable to send data on socket. LIBSSH2_ERROR_SOCKET_TIMEOUT - LIBSSH2_ERROR_SFTP_PROTOCOL - An invalid SFTP protocol response was received on the socket, or an SFTP operation caused an errorcode to be returned by the server. SEE ALSO
libssh2_sftp_init(3) libssh2 0.15 1 Jun 2007 libssh2_sftp_unlink_ex(3)
All times are GMT -4. The time now is 03:30 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy