Whenever I try to execute csh just by itself it gives Badly Placed ()'s.
Whenever I try to use csh with a script it also gives Badly Placed ()'s.
My script is this, there is nothing wrong with it, since it used by other students in class as well. (I have also asked the same question in school forum but resolution has not been found yet)
What other debugging I can do to root cause the issu?
Hi,
when I execute the below script, I am getting following error "Badly placed ()'s". can anyone please help me fix
----------------------------------------------------------
# Usage: ani -n -a -s -w -d
#
#
# help_ani() To print help
#
help_ani()
{
echo "Usage: $0 -n -a -s -w -d"... (3 Replies)
Hi,
I am doing the following but it complains and says "for:badly formed number"
does anyone know why?
#!/bin/tcsh
foreach(....)
............
set depth=64
set width=23
if ($depth==64) then
echo "if"
set addr_bits=5
else
echo "else"
endif
echo "addr_bits:$addr_bits"
echo... (3 Replies)
I have an extraordinary problem with a csh script.....(feel free to berate the use of this but I'm modifying an existing bunch of them)
Anyway, I have a master csh script which in turn calls a second csh script. This second csh script is below. Within this second script are two compiled C++... (1 Reply)
how can I delete one line above and below the matching pattern ?
e.g I want to delete the line above and below the line with %CLI- in example below :
$CHECKSUM $1$DGA1043:TSTST01.DBF;1
%CLI-E-OPENIN, error opening $1$DGA1043:TSTST01.DBF
-RMS-E-FLK, file currently locked by another user
... (6 Replies)
I have this file:
NPANXX|BILLDATE|DIVCODE|COMID|RAO|LIKECODE|BOSS|SORD|STATECODE|
087001|BP01|H|SWBT| |041|IMR6|IMSR6|AR|
087002|BP03|H|SWBT| |042|IMR6|IMSR6|AR|
087003|BP05|H|SWBT| |043|IMR6|IMSR6|AR|
....
these are the things that i HAve to do:
Insert a new column named “TEST”
All... (14 Replies)
i'm trying to run the following program but i keep getting the message "badly placed ()'s" can u help?
#include "modularity_mat.h"
#include "../sparse_mlpl/sparse_matrix.h"
adj_matrix_arr* allocate_mem_for_matrix_arr (int y) {
/* Create the adj matrix and allocate memory */
... (2 Replies)
The shell error message "Badly placed ()'s" can occur for a surprisingly simple oversight. If the script begins with a shell-invocation comment, but is missing the exclamation-point, it is simply a comment and not an invocation. If you attempt to execute it from a shell other than the shell you... (4 Replies)
I dont know why this Linux would give me badly placed () error all the time for this;
#include <stdio.h>
int main()
{
register int num=0 ;
while ((num < 5))
++num;
printf("Pass %d \n", num) ;
return 0 ;
}
can anyone help me please? (11 Replies)
Edit - I don't know how to delete posts. The question I asked here ended up not being the question I should have asked as I didn't realise I needed to edit my script to comply with SGE.
Hi,
My script is:
#!/bin/bash
# Perform fastqc on files in a specified directory.
for ((j=1;... (8 Replies)
Discussion started by: una1992
8 Replies
LEARN ABOUT DEBIAN
catalyst::helper::view::ttsite
Catalyst::Helper::View::TTSite(3pm) User Contributed Perl Documentation Catalyst::Helper::View::TTSite(3pm)NAME
Catalyst::Helper::View::TTSite - Helper for TT view which builds a skeleton web site
SYNOPSIS
# use the helper to create the view module and templates
$ script/myapp_create.pl view HTML TTSite
# add something like the following to your main application module
sub message : Global {
my ( $self, $c ) = @_;
$c->stash->{template} = 'message.tt2';
$c->stash->{message} ||= $c->req->param('message') || 'No message';
}
sub default : Private {
my ( $self, $c ) = @_;
$c->stash->{template} = 'welcome.tt2';
}
sub end : Private { # Or use Catalyst::Action::RenderView
my ( $self, $c ) = @_;
$c->forward( $c->view('HTML') );
}
DESCRIPTION
This helper module creates a TT View module. It goes further than Catalyst::Helper::View::TT in that it additionally creates a simple set
of templates to get you started with your web site presentation.
It creates the templates in root/ directory underneath your main project directory. In here two further subdirectories are created:
root/src which contains the main page templates, and root/lib containing a library of other template components (header, footer, etc.) that
the page templates use.
The view module that the helper creates is automatically configured to locate these templates.
Default Rendering
To render a template the following process is applied:
The configuration template root/lib/config/main is rendered. This is controlled by the "PRE_PROCESS" configuration variable set in the
controller generated by Catalyst::Helper::View::TTsite. Additionally, templates referenced by the "PROCESS" directive will then be
rendered. By default the following additional templates are set: root/lib/config/col, which defines color names and RGB their RGB values
and /root/lib/config/url, which defines site wide variables available to templates.
Next, the template defined by the "WRAPPER" config variable is called. The default wrapper template is located in root/lib/site/wrapper.
The wrapper template passes files with ".css/.js/.txt" extensions through as text OR processes the templates defined after the "WRAPPER"
directive: "site/html" and "site/layout".
Based on the default value of the "WRAPPER" directive in root/lib/site/wrapper, the following templates are processed in order:
o root/src/your_template.tt2
o root/lib/site/footer
o root/lib/site/header
o root/lib/site/layout
o root/lib/site/html
Finally, the rendered content is returned to the bowser.
METHODS
mk_compclass
Generates the component class.
mk_templates
Generates the templates.
SEE ALSO
Catalyst, Catalyst::View::TT, Catalyst::Helper, Catalyst::Helper::View::TT
AUTHOR
Andy Wardley <abw@cpan.org>
LICENSE
This library is free software. You can redistribute it and/or modify it under the same terms as perl itself.
NAME
[% class %] - Catalyst TTSite View
SYNOPSIS
See "[% app %]"
DESCRIPTION
Catalyst TTSite View.
AUTHOR
[% author %]
LICENSE
This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2011-08-02 Catalyst::Helper::View::TTSite(3pm)