When I execute following shell script I am getting the following error
syntax error at line 50 : `<<' unmatched
What am I doing wrong :confused:
Script begins here
----------------
MPAN_FILE=$1
exec 3<$MPAN_FILE ... (2 Replies)
Does anyone see anything wrong with this.
#getInfraFiles()
#{
# cd Infra/$DAY
# rm *
# /usr/bin/ftp -i -n $LINE << cmd
# user "$USER" "$PASSWD"
# cd $INFRAPATH
# binary
# mget *
# bye
#}
besides that its commented out (4 Replies)
Hello,
I have a simple script such as
-----------------------------
#! /bin/sh
YEAR=`date -u +%Y`;
MONTH=`date -u +%m`;
DAY=`date -u +%d`;
DATE=$MONTH$DAY$YEAR
LOGFILES=auditTrail-$DATE
LOGMATCH=$LOGFILES\*
ARGUM=''
# find all files and write them to a file
find . -name... (7 Replies)
when user select option 2 nothing happen.for testing purpose I put
echo command but is not executing .
basically when user prompt for option 2,I want to get list of database name from user separeted by space (TEST DEVL)
and put into the file seprated by new line
TEST
DEVL
after that stay on... (1 Reply)
For one of my script, I want one extra parameter needs to be added to one of the Usage option. Below its given
#Check Input parameters are valid
if ; then
function usage() {
echo
echo "*******************************************"
echo " !!! USAGE... (2 Replies)
I am working on a simple login ID check shell script that should prompt for a user ID then check to see if this user is logged on. Trying to get the hang of this stuff so I am thinking of my own little projects.
#! /bin/sh
echo "please enter a user name"
read user
if user=$user
then... (3 Replies)
Hi ! all I am just trying to check range in my datafile
pls tell me why its resulting wrong
admin@IEEE:~/Desktop$ cat test.txt
0 28.4
5 28.4
10 28.4
15 28.5
20 28.5
25 28.6
30 28.6
35 28.7
40 28.7
45 28.7
50 28.8
55 28.8
60 28.8
65 28.1... (2 Replies)
Perl::Critic::Policy::TestingAndDebugging::RequireTestLaUser(Contributed Perl DocumPerl::Critic::Policy::TestingAndDebugging::RequireTestLabels(3)NAME
Perl::Critic::Policy::TestingAndDebugging::RequireTestLabels - Tests should all have labels.
AFFILIATION
This Policy is part of the core Perl::Critic distribution.
DESCRIPTION
Most Perl modules with regression tests use Test::More as infrastructure for writing and running those tests. It has an easy, procedural
syntax for writing comparisons of results to expectations.
Most of the Test::More functions allow the programmer to add an optional label that describes what each test is trying to judge. When a
test goes wrong, these labels are very useful for quickly determining where the problem originated.
This policy enforces that all Test::More functions have labels where applicable. This only applies to code that has a "use Test::More" or
"require Test::More" declaration (see below to add more test modules to the list).
CONFIGURATION
A list of additional modules to require label parameters be passed to their methods can be specified with the "modules" option. The list
must consist of whitespace-delimited, fully-qualified module names. For example:
[TestingAndDebugging::RequireTestLabels]
modules = My::Test::SubClass Some::Other::Module
The module list always implicitly includes Test::More.
AUTHOR
Chris Dolan <cdolan@cpan.org>
COPYRIGHT
Copyright (c) 2006-2011 Chris Dolan.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.16.3 2014-06-09 Perl::Critic::Policy::TestingAndDebugging::RequireTestLabels(3)