I recently started as an intern and my manager wanted to see how well I would handle Korn Bourne shell scripting without any prior experience, I have prior programming experience but I keep running into syntax errors with AWK. Please take a look at my simple code and tell me what stupid mistake... (6 Replies)
Hi,
First i would like to say that im a unix begginer.
I have a file named /tmp/sample.lst that contain about 20 rows like the following two :
'/tmp/aa.txt' '/temp/aa.txt'
'/tmp/xx.txt' '/temp/xx.txt'
Inside a ksh script i would like to do the following task:
add the cp command at... (2 Replies)
here is a typical question for everyone ...
How to convert a given shell script to binaric command along with its shell script switches.
Any !dea (1 Reply)
Hi,
I am a newbie to PERL and working on a script. When running it I get a lot of compilation errors.
The actual command in the program (which is within a case structure) is given below
# This gives the actual count of inquires from a log file (It works fine when I type this on the... (2 Replies)
Hi guys. Good day, morning, afternoon or night, depending on where you live.
I have a script shell in which I am looping on files (absolute path) see code section above.
I always have an error: bad substitution.
:wall:
Is it because my variable file is the index of the loop and not a normal... (4 Replies)
I want to delete archivelog files that has been archived and applied from primary database
to standby database. This piece of script is working in Linux server. However, I copy it to
Unix server with tiny modification. It won't work and generate the error message. I have checked
code carefullt... (8 Replies)
Hello Unix Shell Script Experts,
I have a script that would mask the columns in .csv file or .txt file.
First the script will untar the .zip files from Archive folder and processes into work folder and finally pushes the masked .csv files into Feed folder.
Two parameters are passed
... (5 Replies)
Discussion started by: Mahesh G
5 Replies
LEARN ABOUT OSX
fifo2
fifo2(n) fifo2(n)
__________________________________________________________________________________________________________________________________________________NAME
fifo2 - Create and manipulate pipe fifo channels
SYNOPSIS
package require Tcl
package require memchan
fifo2
_________________________________________________________________DESCRIPTION
The command described here is only available in a not-yet released version of the package. Use the CVS to get the sources.
fifo2 creates two stream-oriented in-memory channels and returns their handles as a two-element list. There is no restriction on the ulti-
mate size of the channels, they will always grow as much as is necessary to accomodate the data written into them.
In contrast to the channels generated by fifo a pair of channels created here is connected internally in such a way that data writ-
ten into one channel can be read from the other. All data written into them is read in the same order. This also means that the two
channels of the pair are not seekable.
The channels created here can be transfered between interpreters in the same thread and between threads. As both channels in the
pair can be transfered independently they can be used to create a bidirectional connection between two interpreters.
Memory channels created by fifo2 provide two read-only options which can be queried via the standard fconfigure command. These are
-rlength
The value of this option is the number of bytes currently available for reading from the channel.
-wlength
The value of this option is the number of bytes currently written into the channel.
Note that the two lengths are switched for the channels of a pair. In other words, the number of bytes written for one of the channels is
the number of bytes readable from the other end.
As the channels generated by fifo2 grow as necessary they are always writable. This means that a writable fileevent-handler will fire con-
tinuously.
The channels are also readable if they contain more than zero bytes. Under this conditions a readable fileevent-handler will fire continu-
ously.
SEE ALSO
fifo, memchan, null
KEYWORDS
channel, fifo, i/o, in-memory channel, memchan, stream
COPYRIGHT
Copyright (c) 1996-2003 Andreas Kupries <andreas_kupries@users.sourceforge.net>
Memory channels 2.2 fifo2(n)