FTP - ls command (1 viewing) (1) Guest
Favoured: 0
|
|
|
TOPIC: FTP - ls command
|
|
|
|
FTP - ls command 2 Years, 11 Months ago
|
Karma: 0
|
|
Is your FTP directory in a library, or in the IFS? <p>Dave
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
|
|
|
FTP - ls command 2 Years, 11 Months ago
|
|
|
Yes you can if you read the log that is generated. <p>I am assuming you are running a script file with a override to a source member. <p>Log on the machine <BR>
change the directory <BR>
list the directory with ls *.* <BR>
quit. <p>Now open up the log member and read it. <p>Here is an example from a server I use to do this. <p><!--mccodelink_begin--> <BR>
<!-- do not remove --> <BR>
<hr width=50 align=left><small><a href='http://www.mcpressonline.com/mc/showcode@@.6b32effe/1' target='_blank'>Code</a></small> <BR>
<!--mccodelink_end-->
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
J.Wells (User)
Fresh Boarder
Posts: 1
|
|
FTP - ls command 2 Years, 11 Months ago
|
Karma: 0
|
|
Taking the LS thought one step further - <p>LS *.* (disk <p>Will write the output to a file named LSOUTPUT in the current library. You will need to execute a CHGCURLIB before executing this command. <p>Joe <p>p.s. You can also do this with the DIR command and get more info about the files.
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
|
|
|
FTP - ls command 2 Years, 11 Months ago
|
Karma: 0
|
|
THANK YOU ALL for responding !! I really appreciate the help. <p>I will give these ideas a try. <p>Thanks again, <BR>
Julie Clemmons
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
|
|
|
FTP - ls command 2 Years, 11 Months ago
|
Karma: 0
|
|
Joe, <p>I was able to get the file I needed using: LS *.* (disk <p>Thank you again, <BR>
Julie
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
|
|
|
FTP - ls command 2 Years, 10 Months ago
|
Karma: 0
|
|
Help !! <p>I need to list all the file names from a FTP directory and output to a PF file so that I can use it in the RPG program. <p>Is this possible ? Can someone please help me with the correct snytax ?? <p>Thank you very much !!
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
|
|
|
FTP - ls command 2 Years, 10 Months ago
|
|
|
You might also be interested to know that you can use the redirection symbol ">" to put your output in any file you want. <p>First CRTPF a file in yourlib (record length depends on how much information you want to capture... parameters on the LS command) <p>LS *.* > /qsys.lib/yourlib.lib/yourfile.file/yourfile.mbr <p>The results of this command (or any other command that produces output to the screen) will be placed in the file you created.
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
|
|
|
|