05-25-2008
If you want to share variables with scripts written by yourself maybe named pipes is a better alternative.
Google for "named pipes in shell".
Regards
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
The profile of the user is empty. Then before I run the script I want I run a parameter file that populates the variables for oracle.
ORACLE_HOME
ORACLE_BASE
ORACLE_SID
PATH
etc ...
But it seems that these variables are not making it to the shell I am in because when I do an echo on... (6 Replies)
Discussion started by: lesstjm
6 Replies
2. Shell Programming and Scripting
Hi,
I have a scenario where in i have to extarct max of one column and pass it to a variable.
i have tried to export the result as .dat file and read from that file.But my database is mainframe and it is not permitting me to export in .dat file.I have tried using .ixf file but reading from... (2 Replies)
Discussion started by: ammu
2 Replies
3. Shell Programming and Scripting
I have a variable called V_param1 and does it have some value.
I want to check this varibale is NULL or Zero then exit else do
How to incorported this in Script. any input (2 Replies)
Discussion started by: u263066
2 Replies
4. Shell Programming and Scripting
i wanna insert a row in a file.
I m using this command to insert a row in the 13th line.
sed '13i\
NewRow' MyFile > temp.txt
mv temp.txt to MyFile
this works fine.
now i wanna get the line no using grep into a variable and then use tht variable to insert a new row..
how to do this wid... (8 Replies)
Discussion started by: St.Fartatric
8 Replies
5. Shell Programming and Scripting
I have a shell script which is invoked by passing an argument. The outer shell script calls another subshell and I want the argument passed down to flow down to the subshell.
E.g
Invoking a shell ======>> abc_refresh.ksh NM
Below is the content of abc_refresh.ksh
Value1=$1... (7 Replies)
Discussion started by: Mihirjani
7 Replies
6. Shell Programming and Scripting
I am calling a script from with another script and reading its output one line at a time (using <childscript> | while read line) in the parent script. If the output exceeds a predefined number of lines I want to kill the child shell from within the parent shell.
I decided to print the process ID... (2 Replies)
Discussion started by: slash_blog
2 Replies
7. Shell Programming and Scripting
Hello,
I've a little problem with one of my ksh scripts and I manage to narrow it to the script here:
#!/bin/ksh
writeLog()
{
paramHandle="unknown"
OPTIND=1
while getopts :i: option $*
do
case $option in
i) paramHandle=${OPTARG} ;;
esac
done
echo... (2 Replies)
Discussion started by: Dahu
2 Replies
8. Shell Programming and Scripting
Hi All,
I would like to improve my bash scripting skill and found a problem which I do not understand. Task is to search and print files in directory (and subdirecories) which contains its own name. Files can have spaces in name.
This one works fine for files in main directory, but not for... (4 Replies)
Discussion started by: new_item
4 Replies
9. UNIX for Dummies Questions & Answers
Hi there! :)
How to set varibale to be output of a command in csh.
I was using set i="date+'%y%m%d'" but the output is date+'%y%m%d' and without quites and with a single quote the output is the same :wall: :eek:
Thanks in advance (2 Replies)
Discussion started by: FUTURE_EINSTEIN
2 Replies
10. Shell Programming and Scripting
Hello,
I have one query regarding passing IF condition shell variable inside awk. Here is the case-
File content of keydefn.exp
201~2~LM Limit 02-current value~Limit 02 ~Limit02~Current~Value ~N~Y~S~0~9999999
201~3~LM Limit 03-current value~Limit... (2 Replies)
Discussion started by: anillambait
2 Replies
LEARN ABOUT SUSE
pfsinmulti
pfsinmulti(1) General Commands Manual pfsinmulti(1)
NAME
pfsinmulti - read several streams of frames and write pfs streams to named pipes
SYNOPSIS
pfsinmulti pfsinmulti <file> [--frames f:s:t] [--skip-frames] [<file>...] -- command @1 @2 [@3 ...]
DESCRIPTION
Use this command to read several animation sequences and write them to pfsstreams. This command is useful with those pfs programs, which
take several pfs streams as arguments. For example, the following command can be used to combine two animations so that there are stitched
together:
pfsinmulti anim_a-%04d.hdr anim_b-%04d.hdr -- pfscat @1 @2
arguments @1 and @2 are replaced with named pipes for anim_a-%04d.hdr and anim_b-%04d.hdr frames respectively. command argument is obliga-
tory and it must be preceded with '--'. There should be as many @1, @2, .., @n arguments as there are animation sequences given as input.
Arguments --frames, --skip-frames and other options are handled the same way as in pfsin program. Also pfsinmulti recognizes the same file
formats as pfsin.
Technically, pfsinmulti creates a named pipe for each pfsstream, replaces @n arguments with the names of those pipes and deletes the pipes
when command finishes.
EXAMPLES
pfsinmulti image1.hdr image2.hdr -- cat @1 @2 | pfsview
Does the same as 'pfsv image1.hdr image2.hdr' but in much more sophisticated way.
SEE ALSO
pfsin(1)
BUGS
This command currently does not handle multiple frames given with a %d pattern in case of LDR formats: JPEG, PNG, PNM.
Please report bugs and comments to Rafal Mantiuk <mantiuk@mpi-sb.mpg.de>.
pfsinmulti(1)