I tried using the following code to execute a program but it doesnt seems to be working .. I would like to know whats wrong wit it .
execve("/bin/cat", "words", NULL); (0 Replies)
Hi,
i want to write a script that executes a program (exec?) .
this program then requires a filename as input.
how do i give it this input in the script so the program will be complete run and close by the script.
e.g.
exec prog.exe
program then asks for filename
"enter filename:"... (1 Reply)
Hi,
I am a complete newbie for unix. I have just installed mysql on my MAC. I was wondering every time I wanted to use mysql I had to ./mysql or sh mysql everytime on /usr/local/bin/mysql/bin. How can I execute the mysql program without using ./ or sh. I chmod +x already. And what do I have to... (3 Replies)
Hi
I want to create a shell script tha executes a C program and then retrieves information about it.
I managed to run the program with:
#!/bin/bash
gcc -o program program.c
./program
Now i want to get the id of the process (pid)
Any help would be appreciated,
Thank you (18 Replies)
Hello,
I have a c program executable which I need to run inside a shell script.
But the c program runs in a subshell because of which all the actions done by the c program is not available to the current shell.
Is there any way to execute a C program binary executable in the current shell? (4 Replies)
My professor gave me a code with no errors.
When I compile it's fine, it doesn't show any errors, but when I try to execute it shows this:
line 3: syntax error near unexpected token '('
line 3: 'int main()'
I searched through the Internet but I couldn't find any solution. Please!!!... (1 Reply)
Hi Experts,
I am creating a script to monitor a certain applications running in my Unix system.
My script order goes this way:
df -h /of/a/filesystem
tail -5 /path/to/an/application/availability
su -c "jsmon pf=(profile of my application) `echo "p"`" usradm
#EOF
I am... (7 Replies)
Discussion started by: Xworks
7 Replies
LEARN ABOUT DEBIAN
dpipe
DPIPE(1) General Commands Manual DPIPE(1)NAME
dpipe - bi-directional pipe command
SYNOPSIS
dpipe [ command [ args ] ] = [ command [ args ] ]
dpipe [ command [ args ] ] = [ command [ args ] ] [ = [ command [ args ] ] ] ...
DESCRIPTION
dpipe is a general tool to run two commands diverting the standard output of the first command into the standard input of the second and
vice-versa. It is the bi-directional extension of the | (pipe) syntax used by all the shells. The = has been chosen as a metaphor of two
parallel communication lines between the commands. It is also possible to concatenate several tools. Intermediate programs communicate
using standard input and standard output with the preceding tool and alternate standard input and output (respectively file descriptors
number 3 and 4) towards the following tool. If an intermediate tool should process only the data flowing in one direction use { or } as
suffix for the preceding = and prefix of the following one.
This tool has been written as a tool for the Virtual Distributed Ethernet.
EXAMPLE
dpipe a = b
processes a and b are bidirectionally connected: stdin of a is connected to stdout of b and vice-versa
dpipe a = b = c
a and b are connected as above. Alternate stdin of b is connected to stdout of c and alternate stdout of b to stdin of c
dpipe a =} b }= c
This is a cycle of pipes: stdout of a is connected to stdin of b, stdout of b with stdin of c, and stdout of c to stdin of a
dpipe a =} b }={ c {= d = e
all the notations can be mixed together. this is a -> b -> d -> c and back to a; alternate ports of d are connected to e
OPTIONS
no options.
NOTICE
Virtual Distributed Ethernet is not related in any way with www.vde.com ("Verband der Elektrotechnik, Elektronik und Informationstechnik"
i.e. the German "Association for Electrical, Electronic & Information Technologies").
SEE ALSO vde_switch(1), vde_plug(1), vde_plug2tap(1), vdeq(1). wirefilter(1).
AUTHOR
VDE is a project by Renzo Davoli <renzo@cs.unibo.it>.
Virtual Distributed Ethernet December 6, 2006 DPIPE(1)