10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have a program running on unix that creates a text file as part of a triggered event. the text files are written to the same directory everytime. There are 15+ users that could possibly be creating the files.
Once the file is created, I need to move the file to a third party system.
the only... (2 Replies)
Discussion started by: jdboydinaz
2 Replies
2. Solaris
Ok I am just going to explain what I am running step by step
sftp user@hostname
sftp > ls < when I run the command "ls" I get a long listing the old version,
on the new version I get a short listing
how can I change my new version to give me long listing by default (1 Reply)
Discussion started by: slufoot80
1 Replies
3. UNIX for Dummies Questions & Answers
Hello,
Using ftp i was able to get a directory listing to local directory.
ftp - i <host_name>
ftp <user>
ftp <password>
dir <dir>
200 PORT command successful
150 Opening ASCII mode data connection for file list
-rw-rw-r-- 1 <uuu> <kkk> 160384 Apr 13 19:38 walmart.txt
226... (5 Replies)
Discussion started by: pavan_test
5 Replies
4. Shell Programming and Scripting
Hi Gurus,
We need to make SFTP in non_interactive mode. I have done steps like key generation, copying public key into destination server, changing file/folder permission. Still we are not able to achieve it. Please check the log below....
$ sftp -v b2cint@10.76.120.120
Connecting to... (1 Reply)
Discussion started by: Sabari Nath S
1 Replies
5. Shell Programming and Scripting
Hello all and Happy 2010!
I have following problem and I do not have a full solution yet.
Maybe someone of you could help ....
I have remote sevrer A and I am connecting from my local server via SFTP to download .TXT files.
-Files are dropped at random times into download folder on server A... (7 Replies)
Discussion started by: kalimero
7 Replies
6. UNIX for Dummies Questions & Answers
I need to list files in alphabetical-group and each such group listed in increasing order of timestamp.
Example : If I list files in a directory ( ls -lrt ) it shows like below.
c3
b4
b3
a4
a3
c2
b2
c1
b1
a2
a1
What I need is
c3
c2 (4 Replies)
Discussion started by: coolbhai
4 Replies
7. Shell Programming and Scripting
hi,
i have a the direcories like
usr\clone1\heap001.txt
usr\clone2\heap334.txt
usr\clone3\heap8899.txt
i nead a command which list all the file starting with heap*.i have to execute the command from usr directory. find command is hanging, i need some other form of script to do ... (2 Replies)
Discussion started by: jayaramanit
2 Replies
8. UNIX for Dummies Questions & Answers
Thank you for the help (2 Replies)
Discussion started by: scooter17
2 Replies
9. Shell Programming and Scripting
Hello all,
need help to write a smal script to send files to remote sys using sftp @ HP UNIX environment.
Thanks (1 Reply)
Discussion started by: ravi.sadani19
1 Replies
10. UNIX for Dummies Questions & Answers
Does any one know how to get a recursive directory listing in long format (showing owner, group, permission etc) without listing the files contained in the directories.
The following command also shows the files but I only want to see the directories.
ls -lrtR * (4 Replies)
Discussion started by: psingh
4 Replies
CURLOPT_FTP_CREATE_MISSING_DIRS(3) curl_easy_setopt options CURLOPT_FTP_CREATE_MISSING_DIRS(3)
NAME
CURLOPT_FTP_CREATE_MISSING_DIRS - create missing dirs for FTP and SFTP
SYNOPSIS
#include <curl/curl.h>
typedef enum {
CURLFTP_CREATE_DIR_NONE,
CURLFTP_CREATE_DIR,
CURLFTP_CREATE_DIR_RETRY
} curl_ftpcreatedir;
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_FTP_CREATE_MISSING_DIRS,
long create);
DESCRIPTION
Pass a long telling libcurl to create the dir. If the value is CURLFTP_CREATE_DIR (1), libcurl will attempt to create any remote directory
that it fails to "move" into.
For FTP requests, that means a CWD command fails. CWD being the command that changes working directory.
For SFTP requests, libcurl will attempt to create the remote directory if it can't obtain a handle to the target-location. The creation
will fail if a file of the same name as the directory to create already exists or lack of permissions prevents creation.
Setting create to CURLFTP_CREATE_DIR_RETRY (2), tells libcurl to retry the CWD command again if the subsequent MKD command fails. This is
especially useful if you're doing many simultaneous connections against the same server and they all have this option enabled, as then CWD
may first fail but then another connection does MKD before this connection and thus MKD fails but trying CWD works!
DEFAULT
CURLFTP_CREATE_DIR_NONE (0)
PROTOCOLS
FTP and SFTP
EXAMPLE
TODO
AVAILABILITY
Added in 7.10.7. SFTP support added in 7.16.3. The retry option was added in 7.19.4.
RETURN VALUE
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if the create value is not.
SEE ALSO
CURLOPT_FTP_FILEMETHOD(3), CURLOPT_FTP_USE_EPSV(3),
libcurl 7.54.0 February 03, 2016 CURLOPT_FTP_CREATE_MISSING_DIRS(3)