Sponsored Content
Full Discussion: for loop (001 to 500)
Special Forums UNIX Desktop Questions & Answers for loop (001 to 500) Post 302585296 by jayan_jay on Wednesday 28th of December 2011 04:43:17 AM
Old 12-28-2011
Code:
$ i=1; while [ $i -le 500 ]; do printf "%03d\n" $i ; i=$((i+1)); done

This User Gave Thanks to jayan_jay For This Post:
 

3 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How can get the value 001 using shell script

Hi Gurus, Please help in this shell script. x=000 y=`expr $x + 1` echo $y which gives me the value as 1 How can i get the value as 001 in this shell script. As i am new to scripting stuck up here. Requesting here help here (2 Replies)
Discussion started by: nmadhuhb
2 Replies

2. Shell Programming and Scripting

Fill the values between -500 to 500 -awk

input -200 2.4 0 2.6 30 2.8 output -500 0 -499 0 -488 0 .......... .......... .... -200 2.4 .... ... 0 2.6 (6 Replies)
Discussion started by: quincyjones
6 Replies

3. UNIX for Advanced & Expert Users

System call failed with 127 .. after 500 times when called in loop

Hi Experts, I have a code like this. ===== #include.... int main() { int count = 0; while(1){ printf("\n Interation number is: %d \n ",count); rv = system(" test.sh > log.txt " ); if (-1 == rv) { printf("Could not generate static log: error... (12 Replies)
Discussion started by: binnyjeshan
12 Replies
Plack::Middleware::StackTrace(3pm)			User Contributed Perl Documentation			Plack::Middleware::StackTrace(3pm)

NAME
Plack::Middleware::StackTrace - Displays stack trace when your app dies SYNOPSIS
enable "StackTrace"; DESCRIPTION
This middleware catches exceptions (run-time errors) happening in your application and displays nice stack trace screen. The stack trace is also stored in the environment as a plaintext and HTML under the key "plack.stacktrace.text" and "plack.stacktrace.html" respectively, so that middleware futher up the stack can reference it. This middleware is enabled by default when you run plackup in the default development mode. You're recommended to use this middleware during the development and use Plack::Middleware::HTTPExceptions in the deployment mode as a replacement, so that all the exceptions thrown from your application still get caught and rendered as a 500 error response, rather than crashing the web server. Catching errors in streaming response is not supported. CONFIGURATION
force enable "StackTrace", force => 1; Force display the stack trace when an error occurs within your application and the response code from your application is 500. Defaults to off. The use case of this option is that when your framework catches all the exceptions in the main handler and returns all failures in your code as a normal 500 PSGI error response. In such cases, this middleware would never have a chance to display errors because it can't tell if it's an application error or just random "eval" in your code. This option enforces the middleware to display stack trace even if it's not the direct error thrown by the application. no_print_errors enable "StackTrace", no_print_errors => 1; Skips printing the text stacktrace to console ("psgi.errors"). Defaults to 0, which means the text version of the stack trace error is printed to the errors handle, which usually is a standard error. AUTHOR
Tokuhiro Matsuno Tatsuhiko Miyagawa SEE ALSO
Devel::StackTrace::AsHTML Plack::Middleware Plack::Middleware::HTTPExceptions perl v5.14.2 2011-07-08 Plack::Middleware::StackTrace(3pm)
All times are GMT -4. The time now is 02:58 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy