Sponsored Content
Top Forums Shell Programming and Scripting ftp script : list 4 lasts files Post 302416228 by pseudocoder on Sunday 25th of April 2010 05:50:13 PM
Old 04-25-2010
Hammer & Screwdriver

Quote:
Originally Posted by u404339
because the ftp-ls command don't accept options like -lrt.
It's working... (for me at least).
Code:
Password:
230 User myuser logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd code/wx
250 CWD command successful.
ftp> ls -ltr
229 Entering Extended Passive Mode (|||54576|)
150 Opening ASCII mode data connection for '/bin/ls'.
total 204
-rw-r--r--  1 myuser  myuser     315 Apr  5 08:52 HelloWorldApp.h
-rw-r--r--  1 myuser  myuser     517 Apr  5 08:52 HelloWorldApp.cpp
-rwxr-xr-x  1 myuser  myuser   24835 Apr  5 09:10 HelloWorldApp
drwxr-xr-x  3 myuser  myuser     512 Apr  5 09:42 wxflat
-rw-r--r--  1 myuser  myuser  173563 Apr  5 10:21 wxPerl-0.26-samples.zip
drwxr-xr-x  4 myuser  myuser     512 Apr  5 10:28 Wx-0.26
226 Transfer complete.
ftp>

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Reading list of files into ftp script

How can I go about getting this done? I have tried and failed with a loop before I start the session and after seeing that I am already in the ftp code block and not bash when I am trying to perform this: #FTP Information ftp_server=xx.xxx.xxx.xx ftp_user=xxxx while read line; do... (1 Reply)
Discussion started by: BkontheShell718
1 Replies

2. Shell Programming and Scripting

Pulling a list of files from FTP site in a shell script

Hi, I am writting a shell script which will pull a list files (mentioned in one file 1.txt) from external FTP site (for ex: ftp://abcd.efghijk.com/). The 1.txt is in my local unix directory. I have username and password to connect the external FTP site. Also before I pull the files, I need... (0 Replies)
Discussion started by: spatra
0 Replies

3. Shell Programming and Scripting

Getting a list of files on an ftp, via shell script...

G'day, I was wanting to write a shell script that checks an ftp server for the presence of new files, then get those files. In so much as the get, this is pretty straight forward, but I cannot work out how to get a list of files to check. Is it possible for a shell script to get the output of... (1 Reply)
Discussion started by: Elric of Grans
1 Replies

4. Shell Programming and Scripting

list files on a server ftp

Hello, I would want to list files of an server FTP with the path of the file... i try "ls -R" but ftp don't accept this command... Is it possible with curl command ??? Regards. (5 Replies)
Discussion started by: protocomm
5 Replies

5. Shell Programming and Scripting

Help needed to transfer list of files to FTP server, to different folders

Hello Unix Gurus, Help required from you. My requirement is something like this I want to create a concurrenct program in Oracle Applications using shell script to transfer files from Apps Server to destination FTP server. I have created custom program, where I will extract all the... (4 Replies)
Discussion started by: amazon
4 Replies

6. Shell Programming and Scripting

How to list files in FTP prompt pagewise in solaris?

Hi, I have a solaris system with only ftp access.Need to get the list of files page wise display.. Also would like to redirect output of "ls" command to a text file in same directory. Can anyone suggest me the sollution for this? Rakesh (2 Replies)
Discussion started by: rakesh_noronha
2 Replies

7. Shell Programming and Scripting

FTP script to login and list files to log file

Hi Guys I did a forum search for "ftp scripts" Looked at 8 pages and didnt see anything that would help. Most seem to be logging into a ftp server and transfering files. What I need to do is login to a FTP server. Goto a folder and list it so it showes newest files first. It would be nice to... (4 Replies)
Discussion started by: voorhees1979
4 Replies

8. Shell Programming and Scripting

List files ftp

I list files on server ftp, and i'm a french man then i have files with accents. When i use wget for a mirroring, the files with accent are not encoded correctly, i have some "%CC%81" instead "é" for example... I have idea to cat the file list and pipe for tr awk or sed but unfotunately nothing... (2 Replies)
Discussion started by: protocomm
2 Replies

9. Shell Programming and Scripting

script to grep only the lasts errors

Hi, sorry if there already a thread about this, I did a little bit of digging but haven't found exactly what I want. I have a java application on a glassfish server who crash from time to time :D I need a script to allert me if there's a error like "java heappspace" or "out of memory" in the... (5 Replies)
Discussion started by: jblecrou
5 Replies

10. Shell Programming and Scripting

FTP to list files

Hi Guys, Am writing a FTP script to download file from a remote server. There are 3 files in the target directory. eg. bfg234.2 vfg345.1 abc123.1 abc123.2 I need to get the file "abc123.2". The number could be increasing everytime.I need to get the latest file. can this be done ? (1 Reply)
Discussion started by: giri_luck
1 Replies
PAM_WINBIND.CONF(5)							 5						       PAM_WINBIND.CONF(5)

NAME
pam_winbind.conf - Configuration file of PAM module for Winbind DESCRIPTION
This configuration file is part of the samba(7) suite. pam_winbind.conf is the configuration file for the pam_winbind PAM module. See pam_winbind(8) for further details. SYNOPSIS
The pam_winbind.conf configuration file is a classic ini-style configuration file. There is only one section (global) where various options are defined. OPTIONS
pam_winbind supports several options which can either be set in the PAM configuration files or in the pam_winbind configuration file situated at /etc/security/pam_winbind.conf. Options from the PAM configuration file take precedence to those from the pam_winbind.conf configuration file. debug = yes|no Gives debugging output to syslog. Defaults to "no". debug_state = yes|no Gives detailed PAM state debugging output to syslog. Defaults to "no". require_membership_of = [SID or NAME] If this option is set, pam_winbind will only succeed if the user is a member of the given SID or NAME. A SID can be either a group-SID, an alias-SID or even an user-SID. It is also possible to give a NAME instead of the SID. That name must have the form: MYDOMAIN\mygroup or MYDOMAIN\myuser. pam_winbind will, in that case, lookup the SID internally. Note that NAME may not contain any spaces. It is thus recommended to only use SIDs. You can verify the list of SIDs a user is a member of with wbinfo --user-sids=SID. This setting is empty by default. try_first_pass = yes|no By default, pam_winbind tries to get the authentication token from a previous module. If no token is available it asks the user for the old password. With this option, pam_winbind aborts with an error if no authentication token from a previous module is available. If a primary password is not valid, PAM will prompt for a password. Default to "no". krb5_auth = yes|no pam_winbind can authenticate using Kerberos when winbindd is talking to an Active Directory domain controller. Kerberos authentication must be enabled with this parameter. When Kerberos authentication can not succeed (e.g. due to clock skew), winbindd will fallback to samlogon authentication over MSRPC. When this parameter is used in conjunction with winbind refresh tickets, winbind will keep your Ticket Granting Ticket (TGT) uptodate by refreshing it whenever necessary. Defaults to "no". krb5_ccache_type = [type] When pam_winbind is configured to try kerberos authentication by enabling the krb5_auth option, it can store the retrieved Ticket Granting Ticket (TGT) in a credential cache. The type of credential cache can be set with this option. Currently the only supported value is: FILE. In that case a credential cache in the form of /tmp/krb5cc_UID will be created, where UID is replaced with the numeric user id. Leave empty to just do kerberos authentication without having a ticket cache after the logon has succeeded. This setting is empty by default. cached_login = yes|no Winbind allows to logon using cached credentials when winbind offline logon is enabled. To use this feature from the PAM module this option must be set. Defaults to "no". silent = yes|no Do not emit any messages. Defaults to "no". mkhomedir = yes|no Create homedirectory for a user on-the-fly, option is valid in PAM session block. Defaults to "no". warn_pwd_expire = days Defines number of days before pam_winbind starts to warn about passwords that are going to expire. Defaults to 14 days. SEE ALSO
pam_winbind(8), wbinfo(1), winbindd(8), smb.conf(5) VERSION
This man page is correct for version 3 of Samba. AUTHOR
The original Samba software and related utilities were created by Andrew Tridgell. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed. This manpage was written by Jelmer Vernooij and Guenther Deschner. Samba 3.6 06/18/2010 PAM_WINBIND.CONF(5)
All times are GMT -4. The time now is 05:00 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy