@cfajohnson,
Thanks for pointing out the errors, i have changed the sh to ksh93.
But even now i am not able to run the for command.
I would use the more portable (though arrays are not standard) form of assigning an array:
Quote:
Then use the standard syntax.
(That works for me in ksh93; perhaps you are using a different version of ksh93. All the more reason to use the standard syntax; it will work in all versions and other shells.)
Quote:
the command u mentioned above
will give me all the elements in the array. But i want only certain elements from the array, which i wanted to do it using a for loop...
Both forms give you all the elements in the array. You have to select the ones you want inside the loop.
Always use the standard syntax when possible without losing efficiency. Non-standard features may (and often do) change from one verion of a shell to the next.
how can i make one script fail if some condition is not satisfied.i m writing if ..else logic in script.i need some standard command to do that ,, (1 Reply)
Hello,
while i was saving a web file directing on to usb location there was some network problem which result in error WRITE DELAYED on windows xp.
so pen drive is not getting completely formated(show as Windows was unable to complete format).From then onwords it is not allowing to copy... (0 Replies)
Hi
I've gotten a plugin script that won't run. I keeps throwing an error at the following line.
for BARCODE_LINE in `cat ${TSP_FILEPATH_BARCODE_TXT} | grep "^barcode"`
do
#something
done
The error reads
... (3 Replies)
All ,
I am trying to install POCO lib on Solaris server.
When I do make -s,I am getting the following error.
make: Fatal error in reader: Makefile, line 10: Unexpected end of line seen
Few of the content:
#
# Makefile
#
# The global Makefile for POCO
#
#sinclude config.make
... (0 Replies)
Dear all,
I would like to count the no;of word "INFORMATION" in a file called alt.lst and output to a unix variable INFORMATION.so to do this I wrote the below code
INFORMATION=echo 'INFORMATION' | tr -cs 'A-Za-z' '\n' < /app/tisq005/01/home/tisq005b/scripts/alt.lst | grep -c "INFORMATION"... (2 Replies)
Hi all,
I have below code
sqlplus -s ext/exo@TIS << EOF
whenever sqlerror exit failure rollback;
set echo off
set head off
set serveroutput on
set termout on
set trimspool on
SPOOL $SPOOL_FILE
select 'ROWS '|| ' '||decode((count(Part_no)),0,'With greater values not... (3 Replies)
Hi All
I have two shell scripts where the second is getting invoked from the first. E.g.
test1.sh and test2.sh Within test1, the code is something like this:
#!/bin/bash
. test2.sh
usage() {
echo "..."
echo "....."
}
SRC=$1
DEST=$2
case "$3" in
tran) doTran ;;
*)... (7 Replies)
Hello Gurus,
I am writing one script at linux.
The logic is
There is a find command which will find some specific files daily and store at a variable
Then echo that variable .
Now when I am trying to read the variable by using for loop it is throwing error as below:cat: CKDT.dat: No such... (5 Replies)
Hi,
I have downloaded gzipped source tarball of python3.7. I have tried to compile like below,
./configure --prefix=/directory
Compiling seems to be ok..But when running make all..Getting too many missing initializer warnings
/python3.6/Python-3.6.0/Modules/_cursesmodule.c: At top level:... (1 Reply)
Hi,
Prustat is throwing error only in zones. But it is working fine in global.
dtrace: invalid probe specifier
/*
** The following is a trimmed version of two seperate DTrace scripts:
**
** socketsnoop.d - snoop TCP network socket traffic by process.
** This is intended to identify the... (3 Replies)
Discussion started by: Sumanthsv
3 Replies
LEARN ABOUT DEBIAN
voice_set_playmode
voice_set_playmode(3alleg4) Allegro manual voice_set_playmode(3alleg4)NAME
voice_set_playmode - Adjusts the loop status of the specified voice. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
void voice_set_playmode(int voice, int playmode);
DESCRIPTION
Adjusts the loop status of the specified voice. This can be done while the voice is playing, so you can start a sample in looped mode (hav-
ing set the loop start and end positions to the appropriate values), and then clear the loop flag when you want to end the sound, which
will cause it to continue past the loop end, play the subsequent part of the sample, and finish in the normal way. The mode parameter is a
bitfield containing the following values:
PLAYMODE_PLAY
Plays the sample a single time. This is the default if you don't set the loop flag.
PLAYMODE_LOOP
Loops repeatedly through the sample, jumping back to the loop start position upon reaching the loop end.
PLAYMODE_FORWARD
Plays the sample from beginning to end. This is the default if you don't set the backward flag.
PLAYMODE_BACKWARD
Reverses the direction of the sample. If you combine this with the loop flag, the sample jumps to the loop end position upon reaching the
loop start (ie. you do not need to reverse the loop start and end values when you play the sample in reverse).
PLAYMODE_BIDIR
When used in combination with the loop flag, causes the sample to change direction each time it reaches one of the loop points, so it
alternates between playing forwards and in reverse.
SEE ALSO Allegro version 4.4.2 voice_set_playmode(3alleg4)