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_DIRLISTONLY(3) curl_easy_setopt options CURLOPT_DIRLISTONLY(3)
NAME
CURLOPT_DIRLISTONLY - ask for names only in a directory listing
SYNOPSIS
#include <curl/curl.h>
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_DIRLISTONLY, long listonly);
DESCRIPTION
For FTP and SFTP based URLs a parameter set to 1 tells the library to list the names of files in a directory, rather than performing a full
directory listing that would normally include file sizes, dates etc.
For POP3 a parameter of 1 tells the library to list the email message or messages on the POP3 server. This can be used to change the
default behaviour of libcurl, when combined with a URL that contains a message ID, to perform a "scan listing" which can then be used to
determine the size of an email.
Note: For FTP this causes a NLST command to be sent to the FTP server. Beware that some FTP servers list only files in their response to
NLST; they might not include subdirectories and symbolic links.
Setting this option to 1 also implies a directory listing even if the URL doesn't end with a slash, which otherwise is necessary.
Do NOT use this option if you also use CURLOPT_WILDCARDMATCH(3) as it will effectively break that feature then.
DEFAULT
0, disabled
PROTOCOLS
FTP, SFTP and POP3
EXAMPLE
TODO
AVAILABILITY
This option was known as CURLOPT_FTPLISTONLY up to 7.16.4. POP3 is supported since 7.21.5.
RETURN VALUE
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.
SEE ALSO
CURLOPT_CUSTOMREQUEST(3),
libcurl 7.54.0 February 03, 2016 CURLOPT_DIRLISTONLY(3)