12-21-2005
tried suggestion and get same error as when I try to correct it. See below
[2121]: syntax error: `fi' unexpected
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Can anybody help me in finding out a solution for the problem below?
When we write .unix or .sh files in windows OS and port them to Unix platforms there is a character ^M inserted at the end of each line of the script file.
During ftp porting I set the transfer mode as ASCII for the script... (7 Replies)
Discussion started by: tamilselvi
7 Replies
2. Shell Programming and Scripting
I want to write a script which connects to another linux via ssh.
now i need to execute the rest of my script in that linux..
the echo is coming only when i exited from 10.1.1.252..
pls help (4 Replies)
Discussion started by: esham
4 Replies
3. UNIX for Dummies Questions & Answers
I'm pretty new to the world of linux, so no flames please.
I know there is a plethora of info out on the internet about writing scripts for linux, but few give actual examples.
I need some help with learning the basics of writing some simple scripts to learn the difference between windows and... (1 Reply)
Discussion started by: Strm2k
1 Replies
4. UNIX for Dummies Questions & Answers
Hi All,
You have a very large file, named 'ColCheckMe', tab-delimited, that you are asked to process. You are told that each line in 'ColCheckMe' has 7 columns, and that the values in the 5th column are integers. Using shell functions (and standard LINUX/UNIX filters), indicate how you would... (7 Replies)
Discussion started by: am2007
7 Replies
5. UNIX for Dummies Questions & Answers
Hi
I have a file called as MSD.DAT. This file is present at a directory on a server.
www.ta.ibhsv.somewhere.com/rahdf/MSD.DAT
Now, I want to get this file from this server to my Linux box. I need to write a script that uses https to get the file.
Please help how to achieve this.
... (3 Replies)
Discussion started by: infyanurag
3 Replies
6. Shell Programming and Scripting
Hi,
could someone help me to create the following scripts
Need to create couple of shell scripts on LINUX SLES 10
Using my id
---------------
First script – this script should contain su and should take input <process name>
1 -login using my id and then sudo to... (1 Reply)
Discussion started by: lookinginfo
1 Replies
7. Shell Programming and Scripting
We are changing our OS from HP-Unix 11 to Linux Red Hat. We have few k- shell, c - shell and sql scripts which are currently running under HP-Unix 11. Will these scripts work on LINUX as it is? or we need to do any code changes?IS there anyone who have done this kind of migration before?Thanks for... (2 Replies)
Discussion started by: Phoenix2
2 Replies
8. Shell Programming and Scripting
Hi,
I have a script which invokes another script inside. Is there any way I can validate the script for syntax errors as well as checking if the files mentioned in the commands exist without executing it? Below is an example
Example.
=======================
Script1
#ksh
echo... (3 Replies)
Discussion started by: krish000
3 Replies
9. UNIX for Dummies Questions & Answers
Hai All,
Greetings....
I am doing a migration from Solaris to Linux .There are few scripts (logadm, nfsfind, gsscred_clean, kprop_script) for which I need a alternate in Linux.
If somebody can help.
Thanks in advance (1 Reply)
Discussion started by: Dilipkumarkm
1 Replies
10. Shell Programming and Scripting
Hi,
Recently we migrated our app from Unix to Linux platform. All our shell scripts which use to work in Unix platform are not working in Linux now.
below is such sample script. I tried removing trailing spaces, but no luck. dear experts kindly help..
#############BEGIN###############
split... (7 Replies)
Discussion started by: laxman_bly
7 Replies
LEARN ABOUT DEBIAN
syntax
syntax(3pm) User Contributed Perl Documentation syntax(3pm)
NAME
syntax - Activate syntax extensions
VERSION
version 0.004
SYNOPSIS
# either
use syntax 'foo';
# or
use syntax foo => { ... };
# or
use syntax qw( foo bar ), baz => { ... };
DESCRIPTION
This module activates community provided syntax extensions to Perl. You pass it a feature name, and optionally a scalar with arguments, and
the dispatching system will load and install the extension in your package.
The import arguments are parsed with Data::OptList. There are no standardised options. Please consult the documentation for the specific
syntax feature to find out about possible configuration options.
The passed in feature names are simply transformed: "function" becomes Syntax::Feature::Function and "foo_bar" would become
"Syntax::Feature::FooBar".
METHODS
import
syntax->import( @spec );
This method will dispatch the syntax extension setup to the specified feature handlers for the calling package.
import_into
syntax->import_into( $into, @spec );
Same as "import", but performs the setup in $into instead of the calling package.
unimport
syntax->unimport( @features );
This method will trigger uninstallations of the @features from the calling package.
unimport_from
syntax->unimport_from( $from, @features );
Same as "unimport", but will uninstall the @features from $from.
RECOMMENDED FEATURES
o Syntax::Feature::Function
Activates functions with parameter signatures.
SEE ALSO
Syntax::Feature::Function, Devel::Declare
BUGS
Please report any bugs or feature requests to bug-syntax@rt.cpan.org or through the web interface at:
http://rt.cpan.org/Public/Dist/Display.html?Name=syntax
AUTHOR
Robert 'phaylon' Sedlacek <rs@474.at>
COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Robert 'phaylon' Sedlacek.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
perl v5.14.2 2012-05-18 syntax(3pm)