passing variable from bash to perl from bash script
Hi All,
I need to pass a variable to perl script from bash script, where in perl i am using if condition. Here is the cmd what i am using in perl
filename has following data :-
if we hard code the values of FROM_DATE and TO_DATE it is working.I feel what to know why it is not working When i passing it as variable.
it will be great if some one telle me How to pass the variable to perl properly.
i am new to perl world.
Thanks
Arsidh
Last edited by Yogesh Sawant; 05-22-2008 at 12:57 PM..
Reason: added code tags
I'm just not sure where to start looking into this. I want to be able to create switches for my script. Back in the day I'd make my scripts interactive...you know:
echo "what report do you want"
echo "A)boxes with errors"
echo "B)boxes with more than 5 errors"
echo "C)Service groups that have... (3 Replies)
Hi all,
I am running this script on Mandrakelinux release 10.1, 2.6.8.1-12mdksmp #1 SMP
I have also installed 'expect' separately.
I have created an Rsync script, but before any Rsync command does run, a MySql dump must be done first, and I am battling a bit to pass the MySql password from... (2 Replies)
How do I pass a bash variable to a javascript?
I've tried
#!/bin/bash
echo "Content-type: text/html"
echo ""
echo "<html>"
echo "<head>"
counter=0
echo '<script>
window.parent.document.forms.counter.value = "$counter";
</script>'
I have an iframe script which I am trying to pass a... (3 Replies)
Would really appreciate it if someone could point out my mistake in this line of code, i've been staring blankly at it trying everything i can think of some time now and coming up with nothing.
#!/bin/bash
echo "Enter Username"
read Username
awk -F: -v var=${Username} '/^var:/... (9 Replies)
I'm trying to write a basic bash script that takes input you give (what directory, if any, what name, if any ....) and passes the information to find.
I'm trying to just create a string with all variables and then pass it to find. So far I have this extremely simple:
#!/bin/bash -f
... (2 Replies)
Hi,
I meet an problem that it cannot change Terminal environment variable in a perl or bash script.
This change can only exist and become effective in script lifetime.
But I want to make this change take effect in current opened Terminal.
In our view, the thought seems to be impossible,
As... (9 Replies)
OS Solaris 10,
DB oracle 10g
Hello,
We currently have a BASH script that runs and moves image files from a remote server to the local db server. A snippet of the code shows that we are picking up all Images that are 'mtime -1'
some code...
for file in `ssh user@10.200.200.10 'find... (3 Replies)
Hi,
I wanted to pass an argument to a bash script. So that the argument is used inside the awk command inside the bash script.
I know the noraml way of passing argument to a bash script as below :
sh myScript.sh abc
Inside the bash script i can use like this
myArg1=$1
wc $myArg
But... (8 Replies)
Hi All,
I need to pass a variable from bash script to perl script and in the perl script i am using those variables in the sql query but its giving
error :
Use of uninitialized value $ENV{"COUNTRYCD"} in concatenation (.) or string at /GIS_ROOT/custom/tables/DBread_vendor.pl line 50.
Can ... (6 Replies)
I am totally new to PHP and I am trying to create a script that will as a user for a hostname and then use the "hostname" variable to generate a report using REST API.
I am able to create the html script and php script to GET the "hostname" but I am having trouble passing the hostname variable... (10 Replies)
Discussion started by: kieranfoley
10 Replies
LEARN ABOUT DEBIAN
matcherrc2perlfilter
MATCHERRC2PERLFILTER.PL(1) User Contributed Perl Documentation MATCHERRC2PERLFILTER.PL(1)NAME
matcherrc2perlfilter -- Conversion of matcherrc rules to perl
DESCRIPTION
This script converts matcherrc filtering rules into perl_filter rules for usage with the claws-mail-perl-filter plugin of the Claws Mail
mailer.
USAGE
matcherrc2perlfilter
No arguments required. Conversion is done for current user only.
FILES
$HOME/.claws-mail/matcherrc
Input file where standard filtering rules lie.
$HOME/.claws-mail/perl_filter
Output file written by this script. Converted rules are appended if the file already exists, so be careful when running the script more
than once.
BUGS
This conversion script doesn't produce nice Perl code and is just intended to get you started. If you choose to use the Perl plugin,
consider rewriting your rules.
SEE ALSO claws-mail-perl-filter(1), claws-mail(1)AUTHOR
This manual page was written by Ricardo Mones <mones@debian.org>, for the Debian GNU/Linux system (but may be used by others). The
matcherrc2perlfilter was written by Holger Berndt <berndth@gmx.de>.
perl v5.14.2 2012-11-17 MATCHERRC2PERLFILTER.PL(1)