Sponsored Content
Full Discussion: issue with if loop in perl
Top Forums Shell Programming and Scripting issue with if loop in perl Post 302156389 by cbkihong on Tuesday 8th of January 2008 04:10:43 AM
Old 01-08-2008
Can you transform your posted code to a complete program that demonstrates just the issue while being short, so that others can copy onto their systems to run and trace. Without seeing the content of the variables, it is impossible for anyone to help you debug.

And you have not even mentioned in what way the else part is not working. It's not running as expected? It is being executed in a wrong way? So, be specific with what you are expecting.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Help With A For Loop Issue

I was wondering how I can modify this for loop, so it only loops through the filenames that do not have an ".old" extension. for filename in $(ls "$1") do echo $filename | grep '\.old$' > /dev/null if then mv $1/$filename $1/$filename.old fi done (5 Replies)
Discussion started by: ralts01
5 Replies

2. Shell Programming and Scripting

while loop issue

Hi, Following is my code and the file FILE_LIST_EXCESS.txt has 40 file names in it while read LineIn do echo ${LineIn} `ftp -vin << END_INPUT >> ${PID}_DS_GET_Log.log 2>&1 open servername user userid password cd FileDir get ${LineIn} END_INPUT`... (4 Replies)
Discussion started by: mgirinath
4 Replies

3. Shell Programming and Scripting

loop issue

I have 2 files one of them has all the all mac addresses and the other one has all the ip addresses. Basically, I want to loop thru those 2 files and generate a configuration like below: host www184.domain.com { hardware ethernet 00:13:72:3B:B4:3A; fixed-address 192.168.0.184; }... (4 Replies)
Discussion started by: kkkk
4 Replies

4. Shell Programming and Scripting

Perl - pass shell-vars into perl for input loop

I need to process a file line-by-line using some value from a shell variable Something like:perl -p -e 's/$shell_srch/$shell_replace/g' input.txt I can't make the '-s' work in the '-p' or '-n' input loop (or couldn't find a syntaxis.) I have searched and found... (4 Replies)
Discussion started by: alex_5161
4 Replies

5. Shell Programming and Scripting

until loop issue.

Hi, my script is waiting for 3 files to come to a folder for 30 min but even when all the files arrive in the folder it's still waiting for these three files. Files can come with in 2 min and I want it to start processing them immediately after all the files arrive in the folder. until ; do... (3 Replies)
Discussion started by: gurpartap
3 Replies

6. Shell Programming and Scripting

for-while loop issue

sup experts..i had a script which was bugging me..was hoping someone could point out the issue here Input file: space separated 2 columns I wanted to print out the 2 columns after assigning them to variables ( bascially the same output but iterate through line by line ). The code worked... (7 Replies)
Discussion started by: foal_newbie
7 Replies

7. Shell Programming and Scripting

Issue with using While loop

Hi, I am trying to move a file from remote server to local server and when the transfer completes successfully i call a script in remote server to remove the file which was successfully transferred. I do this by first getting the list of file in remote server and move the text file to local... (8 Replies)
Discussion started by: funonnet
8 Replies

8. Shell Programming and Scripting

While Loop issue

Hi, i=0 t5=6000001 while do i=`expr $i + 1` t5=`expr $t5 + 1` echo $t5 done I am able to increment "col3" value but unable to get col1,col2 value. Input: t1=10001 t2=abc t3=ghkc (5 Replies)
Discussion started by: onesuri
5 Replies

9. Shell Programming and Scripting

Issue with while loop?

Hi, I have prepared a script to search for backup file information on the Linux server. Script works fine for the most part except the echo statement inside an IF conditional block displays the message ''snapshot directory not found on xxxxx" even though the .snapshot directory is found a... (11 Replies)
Discussion started by: svajhala
11 Replies

10. Shell Programming and Scripting

Issue with for loop

Hi Team, I have for loop in my shell script. Which basically loop through all files in the directory, When some files are in the directory it works just fine. But if there are no files at all..still the for loop try to execute. Please help. Below is the code. #!/bin/ksh echo "Program... (5 Replies)
Discussion started by: bharath561989
5 Replies
GLBEGINTRANSFORMFEED(3G)					    OpenGL 3.3						  GLBEGINTRANSFORMFEED(3G)

NAME
glBeginTransformFeedback - start transform feedback operation C SPECIFICATION
void glBeginTransformFeedback(GLenum primitiveMode); PARAMETERS
primitiveMode Specify the output type of the primitives that will be recorded into the buffer objects that are bound for transform feedback. C SPECIFICATION
void glEndTransformFeedback(void); DESCRIPTION
Transform feedback mode captures the values of varying variables written by the vertex shader (or, if active, the geometry shader). Transform feedback is said to be active after a call to glBeginTransformFeedback until a subsequent call to glEndTransformFeedback(). Transform feedback commands must be paired. If no geometry shader is present, while transform feedback is active the mode parameter to glDrawArrays() must match those specified in the following table: +-------------------------------------------+---------------------------------------------------+ | | | | Transform Feedback | Allowed Render Primitive | |primitiveMode | modes | | | | +-------------------------------------------+---------------------------------------------------+ |GL_POINTS | GL_POINTS | +-------------------------------------------+---------------------------------------------------+ |GL_LINES | GL_LINES, GL_LINE_LOOP, GL_LINE_STRIP, | | | GL_LINES_ADJACENCY, | | | GL_LINE_STRIP_ADJACENCY | +-------------------------------------------+---------------------------------------------------+ |GL_TRIANGLES | GL_TRIANGLES, GL_TRIANGLE_STRIP, GL_TRIANGLE_FAN, | | | GL_TRIANGLES_ADJACENCY, | | | GL_TRIANGLE_STRIP_ADJACENCY | +-------------------------------------------+---------------------------------------------------+ If a geometry shader is present, the output primitive type from the geometry shader must match those provided in the following table: +-------------------------------------------+-------------------------------------------------+ | | | | Transform Feedback | Allowed Geometry Shader | |primitiveMode | Output Primitive Type | | | | +-------------------------------------------+-------------------------------------------------+ |GL_POINTS | points | +-------------------------------------------+-------------------------------------------------+ |GL_LINES | line_strip | +-------------------------------------------+-------------------------------------------------+ |GL_TRIANGLES | triangle_strip | +-------------------------------------------+-------------------------------------------------+ NOTES
Geometry shaders, and the GL_TRIANGLES_ADJACENCY, GL_TRIANGLE_STRIP_ADJACENCY, GL_LINES_ADJACENCY and GL_LINE_STRIP_ADJACENCY primtive modes are available only if the GL version is 3.2 or greater. ERRORS
GL_INVALID_OPERATION is generated if glBeginTransformFeedback is executed while transform feedback is active. GL_INVALID_OPERATION is generated if glEndTransformFeedback is executed while transform feedback is not active. GL_INVALID_OPERATION is generated by glDrawArrays() if no geometry shader is present, transform feedback is active and mode is not one of the allowed modes. GL_INVALID_OPERATION is generated by glDrawArrays() if a geometry shader is present, transform feedback is active and the output primitive type of the geometry shader does not match the transform feedback primitiveMode. GL_INVALID_OPERATION is generated by glEndTransformFeedback if any binding point used in transform feedback mode does not have a buffer object bound. GL_INVALID_OPERATION is generated by glEndTransformFeedback if no binding points would be used, either because no program object is active of because the active program object has specified no varying variables to record. COPYRIGHT
Copyright (C) 2010 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/. OpenGL 3.3 03/08/2011 GLBEGINTRANSFORMFEED(3G)
All times are GMT -4. The time now is 11:34 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy