9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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
2. Programming
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
3. Programming
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
4. Shell Programming and Scripting
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
5. Programming
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
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
7. UNIX for Advanced & Expert Users
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
8. UNIX for Dummies Questions & Answers
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
9. UNIX for Dummies Questions & Answers
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
libssh2_sftp_rmdir_ex(3) libssh2 manual libssh2_sftp_rmdir_ex(3)
NAME
libssh2_sftp_rmdir_ex - remove an SFTP directory
SYNOPSIS
#include <libssh2.h>
#include <libssh2_sftp.h>
int libssh2_sftp_rmdir_ex(LIBSSH2_SFTP *sftp, const char *path,
unsigned int path_len);
DESCRIPTION
Remove a directory from the remote file system.
sftp - SFTP instance as returned by libssh2_sftp_init(3)
sourcefile - Full path of the existing directory to remove.
sourcefile_len - Length of the full path of the existing directory to remove.
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_rmdir_ex(3)