10-19-2015
This is a snippet from a CGI code. I agree that I can do it in shell. But the situation is not permitting. :P
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi there,
I am new to Perl and KSH. The system I am using picks up the KSH scripts and uses them in a batch job control system.
I am trying to set a variable from a perl command
#!/bin/ksh -eaxp
#*******************************************************************************
# Testing... (5 Replies)
Discussion started by: SaadLive
5 Replies
2. UNIX for Dummies Questions & Answers
Hi,
im having problem creating a loop using my code: aside from the fact that the 1st variable (VAR) does not increment, it loops more than the expected output.
for sample purposes, test csv contains 3 lines.
#get number of lines in the file
lines=$( wc -l < test.csv )
... (5 Replies)
Discussion started by: paoie
5 Replies
3. Shell Programming and Scripting
Hi all,
I basically have an if statement that says if you have more than 5 changes you need to have the force flag set to 1 to proceed. like this
if ((($Changes > 5) && ($force == 1)) || (($nChanges > 0) && ($Changes < 6))) {
I now need to allow the force flag to be either 1 or 2 to... (2 Replies)
Discussion started by: rethink
2 Replies
4. Shell Programming and Scripting
Hi,
i have written a script. it collects data based on the sql queries executed by it. i have multiple output files. after the output file is made i need to do some cosmetic changes in the files and then store them. i am unable to use sed conditions inside the loop.
see below code for... (3 Replies)
Discussion started by: dazdseg
3 Replies
5. Shell Programming and Scripting
My need is :
Want to change
docBase="/something/something/something"
to
docBase="/only/this/path/for/all/files"
I have some (about 250 files)xml files.
In FileOne it contains
<Context path="/PPP" displayName="PPP" docBase="/home/me/documents" reloadable="true" crossContext="true">... (1 Reply)
Discussion started by: linuxadmin
1 Replies
6. Shell Programming and Scripting
Problem: Need to read contents from a file and use that value inside sed as avariable. sample code below. THe below code replaces contents inside file123 for matched string with "$x" value only. but we want the value of x which is read from TextFile.txt to go in there.
cat TextFile.txt|while... (3 Replies)
Discussion started by: cvsanthosh
3 Replies
7. Shell Programming and Scripting
I am trying to find out the difference between two dates, for which I am using perl inside SHELL. Below are my codes.
perl -MDate -e 'Date::Calc qw(Delta_DHMS);'
perl -e '($Dd,$Dh,$Dm,$Ds) = Delta_DHMS($year1,$month1,$day1, $hour1,$min1,$sec1, $year2,$month2,$day2, $hour2,$min2,$sec2)'
But... (6 Replies)
Discussion started by: sauravrout
6 Replies
8. UNIX for Dummies Questions & Answers
Hi guys
Let me at first describe the whole thing that I'm trying to do. Lets say I have 100 files like the following one.
Ow 1230 16.000000 -0.834000 16.083957
1.751652398 -17.20094528 -4.450623277
Hw 1231 ... (6 Replies)
Discussion started by: saleheen
6 Replies
9. Shell Programming and Scripting
I am having trouble re-writing this sed code
sed -nr 's/.*del(+)ins(+).*NC_0{4}(+).*g\.(+)_(+).*/\3\t\4\t\5\t\1\t\2/p' C:/Users/cmccabe/Desktop/Python27/out_position.txt > C:/Users/cmccabe/Desktop/Python27/out_parse.txt in perl Basically, what the code does is parse text from two fields... (12 Replies)
Discussion started by: cmccabe
12 Replies
10. Shell Programming and Scripting
Hi All,
I am trying to use sed command inside a shell script.
The same sed command is working on command line, however its not working while using inside a shell script.
From various sources i found , it could be done by using -i option, but its not working as well.
sed... (11 Replies)
Discussion started by: gotamp
11 Replies
LEARN ABOUT DEBIAN
cgi::application::plugin::debugscreen
CGI::Application::Plugin::DebugScreen(3pm) User Contributed Perl Documentation CGI::Application::Plugin::DebugScreen(3pm)
NAME
CGI::Application::Plugin::DebugScreen - add Debug support to CGI::Application.
VERSION
This documentation refers to CGI::Application::Plugin::DebugScreen version 1.00
SYNOPSIS
use CGI::Application::Plugin::DebugScreen;
That is it! The fun starts when a run mode calls "die".
DESCRIPTION
This plug-in adds stack tracing support to CGI::Application similar in style to the Catalyst debug mode. In the event of the module calling
"die", a stack trace of the error is displayed. At each level of the stack links to the code and documentation are provided.
The stack trace functionality is deactivated unless the $ENV{CGI_APP_DEBUG} environment variable is set. Therefore when your code is
released, this plug-in does not need to be removed.
The links links to code and documentation are implemented using CGI::Application::Plugin::ViewCode, which will be loaded automatically if
available. However these links are not supported in conjunction with CGI::Application::Dispatch.
DEPENDENCIES
strict
warnings
CGI::Application
HTML::Template
Devel::StackTrace
IO::File
CGI::Application::Plugin::ViewCode
UNIVERSAL::require
BUGS AND LIMITATIONS
There are no known bugs in this module. Please report problems to Atsushi Kobayashi (<nekokak@cpan.org>) Patches are welcome.
SEE ALSO
CGI::Application::Plugin::ViewCode
Sledge::Plugin::DebugScreen
CGI::Carp::DebugScreen
Catalyst::Plugin::StackTrace
Thanks To
MATSUNO Tokuhiro (MATSUNO)
Koichi Taniguchi (TANIGUCHI)
Masahiro Nagano (KAZEBURO)
Tomoyuki Misonou
AUTHOR
Atsushi Kobayashi, <nekokak@cpan.org>
COPYRIGHT AND LICENSE
Copyright (C) 2006 by Atsushi Kobayashi (<nekokak@cpan.org>). All rights reserved.
This library is free software; you can redistribute it and/or modify it
under the same terms as Perl itself. See perlartistic.
perl v5.12.3 2011-06-26 CGI::Application::Plugin::DebugScreen(3pm)