Sponsored Content
Full Discussion: Struggling with mkfifo
Top Forums UNIX for Dummies Questions & Answers Struggling with mkfifo Post 50048 by alan on Thursday 15th of April 2004 03:07:57 PM
Old 04-15-2004
Question

Quote:
When I type "what /usr/bin/ksh", I get
$ Revision: 82.10 $
Version 11/16/88
When I type "what /usr/bin/ksh", I get this
/usr/bin/ksh:
$Revision: 82.10.1.61 $
Version 11/16/88
PATCH_11_00: arith.o blok.o ctype.o defs.o edit.o echo.o expand.o fault.o io.o string.o stak.o word.o emacs.o vi.o hpux_rel.o args.o builtin.o cmd.o main.o msg.o print.o xec.o name.o macro.o error.o service.o test.o jobs.o history.o 02/09/04


Quote:
Try switching shells. Just type "sh" which will start up a posix shell.
I try switching to "sh". Same thing:
[dev1@la]/home/dev1% sh
[dev1@la]/home/dev1% mkfifo bla
[dev1@la]/home/dev1% cat bla &
[1] 13618
[dev1@la]/home/dev1% echo "hello world" > bla
sh: bla: Cannot create the specified file.

[dev1@la]/home/dev1% ls -l bla
prw-rw-r-- 1 dev1 cadev 0 Apr 15 13:37 bla|
[dev1@la]/home/dev1%


I also tried "csh" (just in case).Same thing:
% csh
% mkfifo bla2
% cat bla2 &
[1] 14009
% echo "hello world" > bla2

bla2: Is a directory.Smilie
% ls -l bla2
prw-rw-r-- 1 dev1 cadev 0 Apr 15 13:55 bla2
%


I am stumped. Could all of this be due that my userid is forbidden to use shell commands such as these? If it is the case, wouldn't I be getting an "error" message like "You are not authorized to ... this command..."??
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

struggling with addusr ...

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

Struggling with a text file

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

Help- Unix File Compare- Struggling

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

struggling within awk

!#/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

Struggling with arrays and delimited file

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

Struggling with AWK

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

Help with Mkfifo and exec

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

Help with Mkfifo and exec

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

Struggling to combine two Greps statements

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

Parsing file: struggling against sed command

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
DH_OCAML(1)						User Contributed Perl Documentation					       DH_OCAML(1)

NAME
dh_ocaml - calculates OCaml packages dependencies and provides SYNOPSIS
dh_ocaml [debhelper options] [--runtime-map=dev:runtime,...] [--nodefined-map=dev:ignore1,ignore2] [--checksum=str] DESCRIPTION
dh_ocaml is a debhelper program that is responsible for filling the ${ocaml:Provides} and ${ocaml:Depends} substitutions and adding them to substvars files. dh_ocaml acts on three kinds of binary packages: those shipping development part of OCaml libraries (usually named libXXX-ocaml-dev or libXXXX-camlp4-dev), those shipping runtime for OCaml libraires (e.g. plugin and shared library, usually named libXXX-ocaml or libXXXX-camlp4) and those shipping OCaml bytecode non-custom executables (i.e. executables interpreted by /usr/bin/ocamlrun). On specific package the convention is XXX for development and XXX-base for runtime (e.g. ocaml-nox and ocaml-base-nox). On OCaml library packages dh_ocaml will firstly look at OCaml objects shipped by the package. Then, dh_ocaml uses appropriate program on them for collecting information about OCaml modules defined and used by them. Information about defined units will be used to automatically create the OCaml md5sums registry entry for development and runtime package, e.g. /var/lib/ocaml/md5sums/libXXX-ocaml-dev.md5sums. Information about imported units will instead be used as keys in the OCaml md5sums registry for retrieving dependency information for the package. Those information will then be used to fill the ${ocaml:Depends} substvars. They will also be used to fill the ${ocaml:Provides} substvar which will be replaced by a name of the form libXXX-ocaml-dev-NNNN, where NNNN is an checksum computed from the interfaces of the modules provided by the library. Object files (*.cm[ioax], *.cmx[as]) and executables are processed by ocamlobjinfo(1), if possible. Dependencies extracted from the system md5sum registry, dh_ocaml will add in ${ocaml:Depends}: 1. dependency from libXXX-ocaml-dev to libXXX-ocaml (runtime part of the library), if there is a libXXX-ocaml package in debian/control; 2. dependency from libXXX-ocaml-dev to the appropriate libYYYY-ocaml-dev-NNNN packages; 3. dependency from libXXX-ocaml to the appropriate libYYYY-ocaml-NNNN packages. 4. dependency from XXXX to the appropriate libYYYY-ocaml-NNNN packages. For runtime package ${ocaml:Provides} will be set libXXXX-ocaml-NNNN and for development package to libXXX-ocaml-dev-NNNN. The same kind of relations are established between libXXXX-camlp4 and libXXXX-camlp4-dev packages. OPTIONS
--checksum str Checksum are automatically computed from exported interface by the dev/runtime package. This checksum can only show a partial information about the interface. In this case the checksum computation can be replaced by another string which gives more information about dependencies. Typically, ocaml-nox/ocaml-base-nox package doesn't use a computed checksum but the version of OCaml. --nodefined-map dev1:unit1,unit2,... Ignore some exported unit of package/runtime dev1. This option should be used with care. It is a very special case, when one library ship a drop-in replacement for another library. Most of the time if one library ship the same unit it should be considered as an error. This option can be repeated as much as needed to define ignore for all development packages. --runtime-map dev1:runtime1,dev2:runtime2,... The association between development part of libraries and their runtimes is guessed by dh_ocaml according to the OCaml packaging policy. Thus, libXXX-ocaml-dev is the name of the package shipping the development part of XXX library while libXXX-ocaml, if any, is the name of the package shipping the corresponding runtime. libXXXX-camlp4-dev and libXXXX-camlp4 packages are handled the same way. Using --runtime-map you could override the pairs development package name, runtime package name. The value passed to --runtime-map admits no spaces and must be a comma separated list of items. Each item can be a single package name (stating that that name corresponds to the development part of a library) or two package names separated by a colon (stating that the first corresponds to the development part of a library, while the second to its accompanying runtime part). Every package that doesn't follow libXXX-ocaml-dev/libXXX-ocaml, libXXXX-camlp4-dev/libXXXX-camlp4 or which is not defined in the runtime map are considered to be binary package and will be searched only for bytecode. FILES
debian/libXXX-ocaml-dev.olist debian/libXXX-camlp4-dev.olist By default, the list of OCaml objects or bytecode binaries shipped by your package which should be analyzed for retrieving dependency information is guessed by dh_ocaml. This file permit to specify a file which lists, one per line, that OCaml objects or bytecode binaries. Objects should be in one of the format understandable by ocamlobjinfo(1). Files are considered relative to the package build directory. CONFORMS TO
Debian policy, version 3.7.2 OCaml packaging policy, version 1.0.0 SEE ALSO
ocamlobjinfo(1), debhelper(7), ocaml-md5sums(1) This program is a part of debhelper. AUTHORS
Stefano Zacchiroli <zack@debian.org>, Samuel Mimram <smimram@debian.org>, Mehdi Dogguy <mehdi@debian.org>, Sylvain Le Gall <gildor@debian.org>, StA~Xphane Glondu <glondu@debian.org> perl v5.14.2 2013-01-06 DH_OCAML(1)
All times are GMT -4. The time now is 09:05 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy