Good evening, I'm trying to do my own shell and I encountered some issues while creating it. Indeed when I try such a command I have
My shell is named DAUPHINE Whereas I should have:
Code:
I did in a function called commande that activate a parsing function that looks for delimiters and creates an array mot with the other words:
Code:
It actually doesn't show the ls command
Have you any idea of how to fix it?
1. The problem statement, all variables and given/known data:
From the following parsing function, I had to create my own shell.
It was given from my teacher, I don't perfectly understand how it works but I did it but the pipe and the redirection with the pipe.
Right then, there is my own function commande, which I created myself, I didn't shown the variables to make it lighter and shown the 0 case:
2. Relevant commands, code, scripts, algorithms:
simple UNIX commands
close, dup, fork, open...
3. The attempts at a solution (include all code and scripts):
I tried:
Okay, right actually the pipe doesn't work when I do
4. Complete Name of School (University), City (State), Country, Name of Professor, and Course Number (Link to Course):
Paris IX
Paris
France
Michel
Unix et programmation Unix
Guy's,
I need help with creating a pipe, I found this code online but not exactly sure what different parts are doing.
Will someone be able to help me with explaining what code is doing?
Also what I want is to have everything the same directory. Meaning I am working in directory:
I want... (5 Replies)
Hi,
I want to use a Named pipe to get input from a growing file for further processing. When I prototype this scenario using a while loop, the data is not written to the named pipe.
This the script I use to get data into the Named pipe:
#!/bin/ksh
mkfifo pipe
while (( n <= 10 ))
do
echo... (2 Replies)
Hello everybody:
I have a child process which reads a password from /dev/tty, as far as I know file descriptors for the child process can be seen by using lsof, so I want to connect to such device in order to send the password through a pipe, how could I do that? (2 Replies)
I'm new to working with pipes, so I don't know whether the following is expected behaviour or a bug on the part of an application.
Since Version 0.47, Inkscape provides a non-GUI interactive shell mode of operation. I am trying to time the program's performance in converting SVG files to PNG... (1 Reply)
Hi,
I'm new here, so please dont shoot me if I forgot something :)
Some SCO box we've (our company) got recently from a new customer runs an app that hangs the entire box every once in a while.
Today when an admin tried to start the db we got this error:
$ dbstart
dbstart: line 22: cannot... (6 Replies)
Hi All experts, I was asked some questions of late & i was not aware of these. 1Q. how much we can pipe in shell prompt ?2Q. how many arguments we can pass in shell script & how to print that ? (eg, if i want to know what I passed in 11th Argument) ( for 3rd argument we can do echo $3, but I think... (7 Replies)
Sorry about the noobish question but...
How do I capture data thats piped to my script?
For instance,
ls -al | myscript.sh
How do I access the output from ls -al in myscript.sh? (3 Replies)
How can I change the maxnumber of pipes on my workstation?
I'm running an EXPECT script that is suppose to start up 32 xterms.
But after 18 opened xterm, I get this msg:
- couldn't create pipe: too many open files
regard,
chris (9 Replies)
I am a bash shell programmer and I create programs on occasional basis.
Now, I dont want my programs to be run by typing out its name at a command line. I want to make it as user friendly as possible. I want to create icons on the desktop so users can click on it. mind you, I said "desktop... (7 Replies)