Is it possible?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Is it possible?
# 1  
Old 03-17-2007
Is it possible?

Hi gurus,

Can i use regular expressions to ftp files like this

ftp -v -n -i << EOF > FTPERRLOG2.log
open <<host>>
user <<username>> <<passwd>>
prompt off
ls test[0-9]{2}* REMOTFILELIST.txt
bye
EOF

Can u please tell me how to achieve it.

Regards,
Sukumar
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question
ftp(4)								   File Formats 							    ftp(4)

NAME
ftp - FTP client configuration file SYNOPSIS
/etc/default/ftp DESCRIPTION
Use the ftp file to configure the behavior of the FTP client. Lines that begin with a hash symbol ("# ") are treated as comment lines and are ignored. Behavior Directives The ftp file supports the following behavior directives: FTP_LS_SENDS_NLST=yes | no The ls command of the ftp client sends an NLST to the FTP Server by default. Several non-Solaris clients send LIST instead. In order to make the Solaris ftp client send LIST when the ls command is issued, set FTP_LS_SENDS_NLST to no. The value of FTP_LS_SENDS_NLST is yes by default. If the user sets a value for FTP_LS_SENDS_NLST in the user's environment, this value will override any FTP_LS_SENDS_NLST directive that is specified in /etc/default/ftp. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWbipr | +-----------------------------+-----------------------------+ SEE ALSO
ftp(1), attributes(5) SunOS 5.10 22 Oct 2002 ftp(4)