|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
How do I do this in telnet?
How would I CHMOD all files in a certain directory and all its subdirectories to 666, and all the folders to 777 without going thru each subfolder and CHMODing every file in telnet?
|
|
#2
|
||||
|
||||
|
Hi!
You would need a condition.... test -d <filename> returns true if <filename> is a directory. Make a little script that checks with test whether something is a dir and in the else expression place your commands for handling other types of files (i.e. non-directories). See man test there are more parameters to it if you want do distinguish links, too, and other things.. Greetings, Atrus. P.S.: A shellscript condition looks something like: if test -d ... ; then chmod ... else chmod ... fi |
![]() |
| Viewing: Dev Shed Forums > Other > Beginner Programming > How do I do this in telnet? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|