08-04-2009
Yup. It's just like reading/writing to any typical flat file. The named pipe just has some useful properties for purposes such as this. See Chapter 14 in Expert Shell Scripting (Apress)
8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
How can I trap a character press in the shell script.
For eg:- I have a script runinng a infinite loops , I will need to dispay menu asking for run process of to stop process and process stauts like we do in glance
I have seen the traping the signal in glance command, (8 Replies)
Discussion started by: arvindng
8 Replies
2. UNIX for Dummies Questions & Answers
Hi,
My program A updates a log called logA.
I have a shell script S that is responsible to send emails reading from the log.
I want to trigger execution of the script whenever there is an update to the log.
Thanks in advance. (8 Replies)
Discussion started by: cv_pan
8 Replies
3. Shell Programming and Scripting
Hello ,
I want to send mail via bash script but i want to add from parameter
for example i want to send to test@gmail.com and the sender will be test2@gmail.com
Thanks for all (1 Reply)
Discussion started by: LinuxCommandos
1 Replies
4. Shell Programming and Scripting
Hi all,
i'm trying to send an sms (notification sms) via a bash script executing throw crontab.
The script works fine, but the sms itsn't sent to me.
can you help me to resolve this issue, plz.
Thanks.
Yes - we probably COULD help you if you WOULD provide us with your script, the... (0 Replies)
Discussion started by: arezki76
0 Replies
5. Shell Programming and Scripting
Hi
I'm new to scripting - please help me...
I'm trying to run a script written by a friend:
#!/bin/bash
for aStat in ....
do
....
done
when coping the script to the terminal I get:
/bin/bash: Event not found.
for: Command not found. (7 Replies)
Discussion started by: atira
7 Replies
6. Shell Programming and Scripting
I need a script to keep polling "receive_dir" directory till "stopfile" get written in the directory.
This has to run despite empty directory.
So far i have this but fails if receive_dir is empty with no files with "unary operator expected". Help !!
#!/usr/bin/ksh
until
do
for i... (1 Reply)
Discussion started by: iaav
1 Replies
7. Shell Programming and Scripting
Hello experts!
I have a file1 with the following format (yr,day, month, hour,minute):
201201132435
201202141210
201304132030
201410100110
...
What i want to do is to assign variables and then use them in the curl command to download the text of each event from a web page.
What I have... (6 Replies)
Discussion started by: phaethon
6 Replies
8. Shell Programming and Scripting
In shell scripting, TestEmail is an existing group email. I am using the below command to send emails who are existed under TestEmail . Unable to receive the email. I have tried group ="id1 id2 " .Its working and i tried creating alias as well.
Can we do it without creating alias or group ="id1... (1 Reply)
Discussion started by: thomas9192
1 Replies
LEARN ABOUT DEBIAN
togeomview
TOGEOMVIEW(1gv) TOGEOMVIEW(1gv)
NAME
togeomview - send commands or OOGL objects to geomview
SYNOPSIS
togeomview [-c] [-g] [pipename [program args ...]]
DESCRIPTION
togeomview sends a stream of geomview commands, or OOGL-format geometric data, to a cooperating copy of geomview. If geomview is not run-
ning, it is automatically started. ('geomview' must be on the $PATH of the user running 'togeomview' in order for this to work.)
Typical usage is:
someprogram | togeomview (to send commands) or
someprogram-generating-OOGL-data | togeomview -g (to send geometry)
i.e. a program pipes geometric data into ``togeomview''; the data is displayed by a copy of geomview run with the -M option and a name
matching the one given to togeomview.
Togeomview uses a named pipe in the directory /tmp/geomview to communicate with geomview. If unspecified, the pipe's default name is
"OOGL". When sending geometry (-g), a geomview object with the same name as the pipe appears in geomview's object browser.
By default, when no suitable copy of geomview is running, togeomview invokes "geomview" with arguments specifying the appropriate named
pipe. A different command may be specified as in:
togeomview OOGL gv -wpos 300x300 -c my_startup_script
which communicates through a pipe named OOGL, and (if necessary) invokes the given gv command. The pipe name is required if a command is
specified.
After togeomview has created it, the named pipe may be written as an ordinary file. For example, one could use
togeomview pipename < /dev/null
to invoke a listening copy of geomview, and then run a program which simply wrote to /tmp/geomview/pipename.
FILES
/tmp/geomview
BUGS
The pipe-based communications scheme imposes several restrictions.
If no copy of geomview is reading from the pipe, or if geomview gets far enough behind, a program writing data to ``togeomview'' will be
forced to block after sending a few kilobytes.
Because of the buffering in the pipe, the sender may be substantially ahead of the geomview display.
If geomview exits, the sending program receives a write-on-broken-pipe (SIGPIPE) signal, which will kill it unless measures are taken to
catch or ignore that signal.
Only one copy of geomview can read from a given pipe at a time. If a second copy attempts to read from it, both will probably fail. It's
fine to have multiple copies of geomview reading from different pipes.
Note that togeomview will invoke geomview if no extant copy is listening to the relevant pipe; it can't connect to an existing copy of
geomview started by other means.
SEE ALSO
geomview(1), oogl(5)
Geometry Center 21 May 1993 TOGEOMVIEW(1gv)