se da urmatoarea bucata de cod:
curlftpfs()
{
clear
echo "Will use CurlFTPFS to mount specified FTP location."
sleep 1
echo "Please choose mount mode: "
echo "==========================================="
echo "1)Active mode(debug disabled)"
echo "2)Active mode(debug enabled)"
echo "3)Active mode without EPRT(debug disabled)"
echo "4)Active mode without EPRT(debug enabled)"
echo "5)Passive mode(debug disabled)"
echo "6)Passive mode(debug enabled)"
echo "7)Previous menu"
echo "8)Quit"
echo "==========================================="
echo "Your choice: "
read curlchoice
case $curlchoice in
"1") curlftpfs -o disable_epsv,user=$user:$password ftp://$host
$local_mount_point
;;
"2") curlftpfs -d -f -o ftpfs_debug,disable_epsv,user=$user:$password
ftp://$host $local_mount_point
;;
"3") curlftpfs -o disable_epsv,disable_eprt,user=$user:$password
ftp://$host $local_mount_point
;;
"4") curlftpfs -d -f -o
ftpfs_debug,disable_epsv,disable_eprt,user=$user:$password ftp://$host
$local_mount_point
;;
"5") curlftpfs -o user=$user:$password ftp://$host $local_mount_point
;;
"6") curlftpfs -d -f -o ftpfs_debug,user=$user:$password ftp://$host
$local_mount_point
;;
"7") echo "Temporarily not available"
;;
"8") echo "Have a nice day!"
exit
;;
esac
}
Aceasta functie este apelata prin niste meniuri anterioare. CASE-ul
merge perfect in meniuri, pana ajung aici. Cand aleg orice optiune, mi
se reincarca meniul generat de aceasta functie si nu se executa comanda
atasata optiunii alese.
UNDE GRESESC??
multumesc anticipat!
--
Dragos IORGULESCU
Software Test Engineer / AXIGEN
mailto: [EMAIL PROTECTED]
Tel: +40-21-303 2080, Fax: +40-21-303 2081
http://www.axigen.com
_______________________________________________
RLUG mailing list
[email protected]
http://lists.lug.ro/mailman/listinfo/rlug