Doubts on FIFO


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Doubts on FIFO
# 1  
Old 06-06-2008
Doubts on FIFO

Hi ,
I m beginner for Unix and i want to use FIFO in my 2 Scripts . I want 1 script to read data from FIFO and other will write into FIFO.

Despite reading so many articles/posts i am still unable sunchronize my scripts.


My doubts are

1> Do We require both scripts as daemons to use FIFO ?
2> Below is my code ,pls modify it to make it work .


$ cat write
echo "name:" "Akshay" > /home/nbkpxj6/db.FIFO


$cat read
eventQueue=/home/user/db.FIFO

while : ; do


cat $eventQueue | while read name; do
echo $name
done

done

I m getting error " 0403-006 Execute permission denied."

I know above code can work for 2 separate terminals , but i want single terminal to run both scripts, write value and read value from FIFO.


Thanks in advance

Last edited by Akshay; 06-06-2008 at 09:04 AM..
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX and Linux Applications

FIFO

Hello , I am working on unix FIFO IPC. i have a doubt regarding that. If the fifo is updated(write()) through one process....can we able to send any signal that fifo is updated and ready to get read...to other process.?? (0 Replies)
Discussion started by: Harry443
0 Replies

2. AIX

Doubts on SMIT

Hi All, Have a few doubts on SMIT. 1. Is SMIT available in seperate packages if it is not installed by default with the AIX ? 2. how to check the smit version.. is there anything of that kind ? 3. what is the effect of smit.cat file ? 4. What are all the files present in /etc/objrepos/... (4 Replies)
Discussion started by: BalajiUthira
4 Replies

3. Programming

fifo

Dear friends i'm want to implement a program which one file is split into fragments by the server (by some random size) and sent to some processes, so these processes get randomly the fragments of the original file from the server, then the downloader randomly connects to some of these processes... (0 Replies)
Discussion started by: saman_glorious
0 Replies

4. Shell Programming and Scripting

Doubts about variables

Hi, If I have a variable in a configuration file like this: BTS=53,1-2-3-6 export BTS As might get each of the variables in this parameter? "53" "1" "2" .... (3 Replies)
Discussion started by: danietepa
3 Replies

5. UNIX for Dummies Questions & Answers

Unix doubts

Hi All, 1. how and who calls .profile when you login 2. what is PPID and what means by PPID = 0 Thanks in Advance (2 Replies)
Discussion started by: ravi.sadani19
2 Replies

6. Shell Programming and Scripting

doubts in crontab

Hi All, I am tring to set a shedule for cron to execute my script in every 15 min, n want a mail alert on my mail id if cron fails to get data as input for my script, how can i set that? Thanks in advance Subin (1 Reply)
Discussion started by: subin_bala
1 Replies

7. UNIX for Dummies Questions & Answers

unix doubts

Write unix command to list or view auto links (0 Replies)
Discussion started by: ashishshah.engg
0 Replies

8. UNIX for Dummies Questions & Answers

Unix doubts

Hello All, I am very new to UNIX. Please help me to find answers of below questions. 1.A script is saved with name ls. When we execute the script what it will execute? a) Will execute ls command b) Will execute the script c) Will execute script or command depends on the path ... (2 Replies)
Discussion started by: aswathy
2 Replies

9. Programming

how to use fifo

hi, I have a problem. I've done a lil program which gets from the server the given persons username a personal folder. I made it with a pipe calling popen with a command, but how can i make the same thing using fifo. I make the fifo with mkfifo() func. and than what. How do I tell the sertver using... (3 Replies)
Discussion started by: atticus
3 Replies
Login or Register to Ask a Question
ASKPASS-FIFO(8mandos)						   Mandos Manual					     ASKPASS-FIFO(8mandos)

NAME
askpass-fifo - Mandos plugin to get a password from a FIFO. SYNOPSIS
askpass-fifo DESCRIPTION
This program reads a password from a FIFO and outputs it to standard output. This program is not very useful on its own. This program is really meant to run as a plugin in the Mandos client-side system, where it is used as a fallback and alternative to retrieving passwords from a Mandos server. This program is meant to be imitate a feature of the askpass program, so that programs written to interface with it can keep working under the Mandos system. OPTIONS
This program takes no options. EXIT STATUS
If exit status is 0, the output from the program is the password as it was read. Otherwise, if exit status is other than 0, the program was interrupted or encountered an error, and any output so far could be corrupt and/or truncated, and should therefore be ignored. FILES
/lib/cryptsetup/passfifo This is the FIFO where this program will read the password. If it does not exist, it will be created. EXAMPLE
Note that normally, this program will not be invoked directly, but instead started by the Mandos plugin-runner(8mandos). This program takes no options. askpass-fifo SECURITY
The only thing that could be considered worthy of note is this: This program is meant to be run by plugin-runner(8mandos), and will, when run standalone, outside, in a normal environment, immediately output on its standard output any presumably secret password it just received. Therefore, when running this program standalone (which should never normally be done), take care not to type in any real secret password by force of habit, since it would then immediately be shown as output. SEE ALSO
intro(8mandos), fifo(7), plugin-runner(8mandos) COPYRIGHT
Copyright (C) 2008-2009, 2011-2012 Teddy Hogeborn, Bjorn Pahlsson This manual page is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This manual page is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/. Mandos 1.5.5 2012-01-01 ASKPASS-FIFO(8mandos)