bondtrails
Technical User
Hi everyone,
Within a script, how can I capture the output of an ftp "ls" command??
I want to capture the directory output of an ftp site, then create a simple list of all files ending in ".dat"
---------
ftp -n $HOST
quote USER $USER
quote PASS $PASS
cd $DIRECTORY
ls "*.dat" # here's where i get the ls output
----------
What do I do to capture the output from "ls" ??
Thanks for helping out this newbie!!
--Bondster!!
Within a script, how can I capture the output of an ftp "ls" command??
I want to capture the directory output of an ftp site, then create a simple list of all files ending in ".dat"
---------
ftp -n $HOST
quote USER $USER
quote PASS $PASS
cd $DIRECTORY
ls "*.dat" # here's where i get the ls output
----------
What do I do to capture the output from "ls" ??
Thanks for helping out this newbie!!
--Bondster!!