MC Press Online Forum
Welcome, Guest
Please Login or Register.    Lost Password?
FTP - ls command (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: FTP - ls command
#75710
David Abramowitz (User)
Posts: -5
graphgraph
User Offline Click here to see the profile of this user
FTP - ls command 2 Years, 11 Months ago Karma: 0  
Is your FTP directory in a library, or in the IFS? <p>Dave
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#75711
Guest.Visitor (Visitor)

Birthdate:
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-->
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#75712
J.Wells (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
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.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#75713
jclemmons@tdsf.com (User)
Junior Boarder
Posts: 29
graphgraph
User Offline Click here to see the profile of this user
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
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#75714
jclemmons@tdsf.com (User)
Junior Boarder
Posts: 29
graphgraph
User Offline Click here to see the profile of this user
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
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#75709
jclemmons@tdsf.com (User)
Junior Boarder
Posts: 29
graphgraph
User Offline Click here to see the profile of this user
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 !!
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#75715
Guest.Visitor (Visitor)

Birthdate:
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.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop
   MC-STORE.COM