|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You don't need a fax machine to get faxes. Get a fax-to-email fax number from CallWave. Try it free.
|
|
#1
|
|||
|
|||
|
Help
is there anyone out there that can tell me what is the simplest way of writting a script that checks whether the file has the correct permission set.
many thanks |
|
#2
|
||||
|
||||
|
Code:
chris@feodor:~$ ls -al /path/to/filename | cut -f1 -d' ' and do whatever you like with the returned result. christo
__________________
. Spiration channels: Free scripts, programming tutorials and articles Dotcut alerts: Online Press cuttings / news alerts Clearprop: UK microlight school, wiltshire Uk dating: UK safe dating with Topdates About Christo . . |
|
#3
|
|||
|
|||
|
Quote:
Let's say that the correct permission is 660. Just use this script: #! /usr/bin/ksh chmod 660 somefile After you run the script, the answer is "yes, the correct permission is set". |
|
#4
|
||||
|
||||
|
Quote:
very drole christo |
|
#5
|
|||
|
|||
|
Quote:
you're going to have to explain that one... what is drole? I have heard of "droll" (=funny), but what is drole? -Steven |
|
#6
|
||||
|
||||
|
Quote:
http://dictionaries.travlang.com/EnglishFrench/dict.cgi?query=funny&max=50 we use that in english sometimes too, or the London version "very rock 'n' roll" - means the same thing. christo |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > Help |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|