04-15-2004
alan, I just tried this stuff on a 9000/800 running HP-UX 11.00.
As a non-root user, I do get "mknod: must be super-user" with the command "/usr/sbin/mknod bla". But that is an illegal command. When I run the same command as root as get "illegal argument count" and a usage statement.
"/usr/sbin/mknod bla p" works fine for all users.
When I try:
cat bla &
echo "hello world" > bla
it works fine for me. I cannot reproduce that error. Yes, your fifo looks like it has both read and write for you.
Try switching shells. Just type "sh" which will start up a posix shell. It's very close to ksh. Does thast work any better? When I type "what /usr/bin/ksh", I get:
$ Revision: 82.10 $
Version 11/16/88
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I'm completely new to UNIX, and having got the hang of directory navigation / creation (Just about), I think it is time to create an FTP account, so that I can upload a web site remotely.
Herein lies the problem...
1: I cannot find a breakdown of addusr commands, so I cannot create a... (2 Replies)
Discussion started by: Dufty
2 Replies
2. Shell Programming and Scripting
Hi,
I am struggling with the following... I try to grep out information of a text file I got with lynx, a text browser. The text file I get from lynx with dump is attached in the bottom.
What I would like to get is another file containing the astro-ph/98324 (number) and title and list of... (13 Replies)
Discussion started by: pau
13 Replies
3. UNIX for Advanced & Expert Users
I had posted this earlier about 3 weeks ago and had recieved a response and I did sort both the files and the comm command is still not working.
Can someone please assist me, I would really appreciate it.
Below is what I am trying to do
I need to compare File A with File B and create FILE C... (2 Replies)
Discussion started by: guiguy
2 Replies
4. Shell Programming and Scripting
!#/bin/bash
cat input.sh | awk '
{
cur1=tolower($1)
cur2=tolower($2)
rsh $cur1 report | grep $cur2
# i just want to make the code line to work
} '
the error which i get is ....
./madh1.sh: line 1: !#/bin/bash: No such file or directory
awk: cmd. line:13: rsh $cur1 report |... (4 Replies)
Discussion started by: geeko
4 Replies
5. Shell Programming and Scripting
Hi,
I am trying to use arrays in my script but can not seem to get it to work.
I have a file called sections, this contains headers from a tripwire log file, separated by "@" but could be "," if easier
The headers will be used to cut sections from the log file into another to be mailed.
... (5 Replies)
Discussion started by: pobman
5 Replies
6. Shell Programming and Scripting
I know this is an easy problem, but I've been struggling with it all morning and finally admit I need help.
I have two files that I need to compare. After doing this the easy way (grep -F) I realize that there are other fields in file2 that match field1 in file1, so I turned to awk.
I want to... (7 Replies)
Discussion started by: moldoverb
7 Replies
7. Programming
Hello guys!
I am doing a project for the university and I have to do that a process has to create several children through fork(). The father process sends a pathname to each one through exec and the children must send to the father a list with the files from each directory.
The father is... (1 Reply)
Discussion started by: dano88
1 Replies
8. Homework & Coursework Questions
Hello guys!
I am doing a project for the university and I have to do that a process has to create several children through fork(). The father process sends a pathname to each one through exec and the children must send to the father a list with the files from each directory.
The father... (1 Reply)
Discussion started by: dano88
1 Replies
9. UNIX for Dummies Questions & Answers
Greetings!
I have been tasked to create a report off files we receive from our hardware suppliers. I need to grep these files for two fields 'Test_Version' and 'Model-Manufacturer' ; for each field, I need to capture their corresponding values.
When running each statement separately, I get... (4 Replies)
Discussion started by: alan
4 Replies
10. Shell Programming and Scripting
Hello fellows,
Sure you can help this poor guy that is struggling against sed command, being unable to tame it
I have a lot of files like this:
From this one, I need to obtain values highlighted in bold/red
To do so, I am executing this piece of code inside a loop:
... (10 Replies)
Discussion started by: manolain
10 Replies
echo(1B) SunOS/BSD Compatibility Package Commands echo(1B)
NAME
echo - echo arguments to standard output
SYNOPSIS
/usr/ucb/echo [-n] [argument]
DESCRIPTION
echo writes its arguments, separated by BLANKs and terminated by a NEWLINE, to the standard output.
echo is useful for producing diagnostics in command files and for sending known data into a pipe, and for displaying the contents of envi-
ronment variables.
For example, you can use echo to determine how many subdirectories below the root directory (/) is your current directory, as follows:
o echo your current-working-directory's full pathname
o pipe the output through tr to translate the path's embedded slash-characters into space-characters
o pipe that output through wc -w for a count of the names in your path.
example% /usr/bin/echo "echo $PWD | tr '/' ' ' | wc -w"
See tr(1) and wc(1) for their functionality.
The shells csh(1), ksh(1), and sh(1), each have an echo built-in command, which, by default, will have precedence, and will be invoked if
the user calls echo without a full pathname. /usr/ucb/echo and csh's echo() have an -n option, but do not understand back-slashed escape
characters. sh's echo(), ksh's echo(), and /usr/bin/echo, on the other hand, understand the black-slashed escape characters, and ksh's
echo() also understands a as the audible bell character; however, these commands do not have an -n option.
OPTIONS
-n Do not add the NEWLINE to the output.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWscpu |
+-----------------------------+-----------------------------+
SEE ALSO
csh(1), echo(1), ksh(1), sh(1), tr(1), wc(1), attributes(5)
NOTES
The -n option is a transition aid for BSD applications, and may not be supported in future releases.
SunOS 5.10 3 Aug 1994 echo(1B)