07-07-2016
@Aia. omg duh. you are so right.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I have a .test file which has:
#!/bin/ksh
export TEST_FLAG=1
In the test1.ksh i have:
#!/bin/ksh
. .test
echo $TEST_FLAG
When i execute the test1.ksh its showing the value as 1.
But if i refer the same variable in another script, the value is not 1.
Basically, I need to have... (1 Reply)
Discussion started by: risshanth
1 Replies
2. Shell Programming and Scripting
I have a shell script similar to:
#!/bin/sh
a=1
source a1.sh -- Modifies a
source a2.sh -- Modifies a
echo "After execution, value of a is $a"
What i need is a1.sh script modify the same variable a and same with a2.sh. Now the echo "After execution, value of a is $a" should print the... (1 Reply)
Discussion started by: indianjassi
1 Replies
3. Shell Programming and Scripting
Hi All,
I am trying to convert the below Csh while loop into Perl while loop but the problem is that in this csh script, i have 2 variables inside a variable -> $count is a variable {SB$count} as a whole is another variable. Csh is able to assign values to such variable like the below but i do... (3 Replies)
Discussion started by: Raynon
3 Replies
4. Shell Programming and Scripting
hi
I have a perl script from which I call a shell script and pass mail variable to it.
The mail works fine if I give 1 recipient but fails for multiple.
conv.pl:-
$mialing = "anu\@abc.com"
rest.sh $mialing
rest.sh
mail -s "hi" $1
This works fine
But I need to define multiple... (2 Replies)
Discussion started by: infyanurag
2 Replies
5. Shell Programming and Scripting
Hi Friends,
I'm writing code to update a CSV file by multiple PERL scripts.
I've around 2000 PERL scripts which need to register their entries into a CSV file. Hence, I'm inserting following line code in all the 2000 PERL scripts.
open(FILE,... (5 Replies)
Discussion started by: Lokesha
5 Replies
6. Shell Programming and Scripting
Hi There!
I'm writing this LSF script to make it easier to send jobs to a cluster when varying certain parameters. At one point I'd like to do something like:
set NPROC = 10
and later on call BSUB using something like:
#BSUB -n $NPROC
unfortunately for me, this throws an error:
... (4 Replies)
Discussion started by: lrayo
4 Replies
7. Programming
Hi every one,
Please excuse me if any grammatical mistakes is there.
I have multiple xml files in one directory, I need to create multiple XML files into one XML file.example files like this</p>
file1:bvr.xml
... (0 Replies)
Discussion started by: veerubiji
0 Replies
8. Shell Programming and Scripting
Hi to All,
Please find below details.
file_config.config
export file1_status="SUCCESS"
export file2_status="SUCCESS"
file_one.sh
I am calling another two shell script from these script. I need to pass individual two script status (If it's "FAILED") to file_main.sh.
file_main.sh
I... (2 Replies)
Discussion started by: div_Neev
2 Replies
9. Shell Programming and Scripting
I want to match the number exactly from the variable which has multiple numbers seperated by pipe symbol similar to search in egrep.below is the code which i tried
#!/usr/bin/perl
my $searchnum = $ARGV;
my $num = "148|1|0|256";
print $num;
if ($searchnum =~ /$num/)
{
print "found";
}... (2 Replies)
Discussion started by: kar_333
2 Replies
10. Shell Programming and Scripting
Experts,
I'm having problems with the code below.
I'm trying to test $var2 for two different regexs.
I thought it could be done per below, but I'm getting the following error when running.
$ ./test.pl b fed50c0100****
Unescaped left brace in regex is deprecated, passed through in regex; marked... (2 Replies)
Discussion started by: timj123
2 Replies
LEARN ABOUT DEBIAN
mail::milter::wrapper
Mail::Milter::Wrapper(3pm) User Contributed Perl Documentation Mail::Milter::Wrapper(3pm)
NAME
Mail::Milter::Wrapper - Perl extension for wrappering milter objects
SYNOPSIS
use Mail::Milter::Wrapper;
my $milter = ...;
my $wrapper = new Mail::Milter::Wrapper($milter, &foo);
use Sendmail::Milter;
...
Sendmail::Milter::register('foo', $wrapper, SMFI_CURR_ACTS);
DESCRIPTION
Mail::Milter::Wrapper wraps another milter, allowing for interception of the passed arguments and/or return code of the contained milter.
METHODS
new(MILTER, CODEREF[, CALLBACK ...])
Creates a Mail::Milter::Wrapper object.
MILTER is the milter to wrap, which may be a plain hash reference or an instance of a hashref object such as "Mail::Milter::Object".
CODEREF is the wrapper subroutine. CALLBACKs, if specified, are named callbacks which are needed by the wrapper, even if the contained
milter does not use them.
The wrapper subroutine will be called with the following arguments, in this order:
* reference to the wrapper
* name of callback
* subroutine reference to call into the wrapped milter
* arguments for the callback (>= 0)
This subroutine should ALWAYS pass the "close" callback through to the contained milter. Failure to do so may corrupt the contained
milter's state information and cause memory leaks.
As an example, a simple subroutine which just passes the callback through might be written as:
sub callback_wrapper {
shift; # don't need $this
my $cbname = shift;
my $callback_sub = shift;
&$callback_sub(@_);
}
AUTHOR
Todd Vierling, <tv@duh.org> <tv@pobox.com>
SEE ALSO
Mail::Milter, Sendmail::Milter
perl v5.8.8 2004-02-26 Mail::Milter::Wrapper(3pm)