02-27-2010
Hi.
Of the systems on which I tried to use od with a directory, Solaris 10 failed, but (some versions of) IBM AIX, and HP-UX succeeded.
The K & R book was written a long time ago, before Linux was created. I do not know why Linux restricts commands like cat and od from dealing with directories.
The chmod behavior might be explained by the setting of your umask. See man umask for details ... cheers, drl
6 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Is their a way to grep for only one occurrence? Here is an example:
given the file information:
BCX 3 5
BCX 23 94
BNG 34 34
BCX 2 09
if I do:
grep BCX ./file
then i get them all, how can i get just one of them. But let's say there could be a variable number of the desired... (5 Replies)
Discussion started by: wxornot
5 Replies
2. UNIX for Dummies Questions & Answers
Howdie everyone...
I have a shell script RemoveFiles.sh
Inside this file, it only has two commands as below:
rm -f ../../reportToday/temp/*
rm -f ../../report/*
My problem is that when i execute this script, nothing happened. Files remained unremoved. I don't see any error message as it... (2 Replies)
Discussion started by: cheongww
2 Replies
3. What is on Your Mind?
By far, Doritos Nacho Cheesier are the best tasting chips, well at least too me.
Have you tried them?
What are your favorite chips? (5 Replies)
Discussion started by: Neo
5 Replies
4. IP Networking
I have a client machine that was built and loaded with SCO UNIX 2.1.3, (yes it is old). The machine worked fine on the closed network that I tested on in my shop. I then had to change it to the network that it would be connected to. Below is the host file, router and subnet mask file that I usually... (0 Replies)
Discussion started by: NC user
0 Replies
5. Shell Programming and Scripting
My script work on Linux but not work in sun os.
my script.
logFiles="sentLog1.log sentLog2.log"
intial_time="0 0"
logLocation="/usr/local/tomcat/logs/"
sleepTime=600
failMessage=":: $(tput bold)Log not update$(tput rmso) = "
successMessage="OK"
arr=($logFiles)... (7 Replies)
Discussion started by: ooilinlove
7 Replies
6. IP Networking
hi all. and sorry for the random question, but this sparkled a raging flame-war at work and i want more points of view
situation
a router, with linux of some sort,
dhcp client requesting for ip in wan1 (as usual with wan ports)
dhcp server listening in lan1, and assigning ip (as usual... (9 Replies)
Discussion started by: broli
9 Replies