hok1man
Technical User
- Feb 16, 2008
- 102
Hi guys,
what the "exec 4" exactly for?
if it wants to redirect to output file, where is it going to?
and I was just wondering how to put condition like above using normal FTP pattern like :
Thanks Guys,
Code:
exec 4>&1
ftp -nv >&4 2>&4 |&
print -p open $HOST
print -p user $USER $PASSWD
if [-f $1];then
print -p put $1
fi
print -p bye
what the "exec 4" exactly for?
if it wants to redirect to output file, where is it going to?
and I was just wondering how to put condition like above using normal FTP pattern like :
Code:
ftp -n $HOST <<FTP_Block
user $USER $PASSWD
[red]how to put if condition here ...[/red]
bye
FTP_Block
Thanks Guys,