Potřeboval bych uložit strukturu adresářú ze vzdáleného PC (připojení přes FTP klienta) do textové podoby. Nevíte o nějakém prográmku nebo alespoň zpúsobu uložení?
Printable View
Potřeboval bych uložit strukturu adresářú ze vzdáleného PC (připojení přes FTP klienta) do textové podoby. Nevíte o nějakém prográmku nebo alespoň zpúsobu uložení?
neco jako?Kód:tree > out.txt
Cez FTP? To by chcelo nejaky FTP klient ktory to podporuje. Alebo aspon stiahnut iba adresarovu strukturu a potom ten "tree >subor.txt".
Některé FTP servery podporují příkaz SITE EXEC, přes který se dá vzdáleně spustit aplikace, ale je to strašná bezpečnostní díra.
jo to by bylo presne podle mych predstav, ale pokud se pripojim na ftp je funkce neplatna, tedy alespon pres total commander, server nejspise jede na linuxu, ale stejne si myslim, ze by ten prikaz mel brat z meho pc. na mim lokalnim disku funguje bez problemu. jinak diky za raduCitace:
Původně odeslal KtK
No, ja ten prikaz znam jako linuchovej ;-)
A neslo by vzdaleny system namapovat jako mistni disk / adresar a pak pouzit ten tree?
EDIT: no, uz to vidim, asi neslo, pises, ze se pripojujes pres FTPko..
Este me napadlo: Jestli mas rozjetej nakej webserver, na kterym je PHP a mas na nem fungujici FTP funkce, tak by slo zprgat nakej skriptik, kterej to oskenuje.. Docela me to zajima, takze jestli na to nespechas, mozna bych to zkusil v neurcitym casovym horizontu.. -no, tak to vypada, ze to pujde, takze tipuju, ze tenhle vikend bych to mohl mit hotovy..
Nejak na to nechvatam a cenim si Tve pomoci! Vykoumas-li tedy neco,dej vedet!Citace:
Původně odeslal KtK
Sillicon hill = Strahov?
Oy yeah :)Citace:
Původně odeslal Pippin
Jinac mam to prakticky hotovy, hadam, ze to dokoncim behem zitrka, jeste musim domyslet naky ochrany, aby to neslo zneuzit..
Neviem, ci pomozem:
program Disk Explorer Profesional 3 dokaze nacitavat obsah FTP priecinkov, no neviem, ako je to s exportom do txt. (html to zvlada).
to KtK:
muzu se zeptat v com to programujes? jsem na tohle docela laik, akorat nejaky ty veci v pascalu.... Ted se dost hovori o Perlu... chtel bych se do neceho trochu ponorit a neco se naucit....
Delam to v PHP. BTW zrovna ted na tom delam, zitra to urcite bude, zbyva to hodit na server na freeweb, a ted se nak nemuzu pripojit.. Sobe na comp bych to daval nerad, bylo by to trochu riskantni, kdyby to bylo nutny, bysme se domluvili po PM..
K tomu uceni - V pascalu toho fakt moc nevymyslis. ;) Jestli se chces ponorit do PHP, jednoznacne pro zacatecnika je vyborna knizka od J.Koska. Jmenuje se to PHP - tvorba interaktivnich internetovych aplikaci. PHP je GNU skriptovaci jazyk, syntaxi podobny C, ovsem znacne volnejsi.. http://www.php.cz (mirror php.net) Urcite neprohloupis, kdyz budes vedet co je to zac, kdyz uz nic, pochopis zaklady serveroveho skriptovani webu, coz neni k zahozeni :wink: ..