09-18-2012
Did you redirect stderr as well?
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi All,
I am checking for a empty input file to do some further action , but I am getting exit status 0 in both the cases , for empty and non empty file both.
The value of $? is coming 0 in if part also and else part too.
#!/bin/ksh
if ]; then
echo "data"
# exit 0
echo "$?"
else... (4 Replies)
Discussion started by: mavesum
4 Replies
2. Shell Programming and Scripting
Hi,
I'm trying to use sed within a shell script (bash, running ubuntu). The command works fine from the command line, but when I use it within the script, rather than creating a file with the name I've specified, it creates one that ends with a question mark '?' when you use ls, e.g.... (3 Replies)
Discussion started by: jennykay
3 Replies
3. Shell Programming and Scripting
I have the following awk script to which I pass the file
>
10 0 0
10 0 0
>
12.997 0 5.71132
12.9098 0.0687626 5.48855
12.7506 0.174324 5.13225
12.5913 0.262662 4.80643
12.4316 0.335652 4.50283
12.2717 0.394598 4.21542
12.1113 0.440399 3.93957
11.9506 0.473646 3.67148
11.7894... (2 Replies)
Discussion started by: kristinu
2 Replies
4. Shell Programming and Scripting
I have a script that runs ditto for me, and occasionally (if I exit the script while ditto is running in the background) it will leave an empty file named 0 in the script's directory. The next time I run the script, it generates incorrect data because of this file. I know I can easily insert a... (1 Reply)
Discussion started by: reid
1 Replies
5. Shell Programming and Scripting
I have a script that runs ditto for me, and occasionally (if I exit the script while ditto is running in the background) it will leave an empty file named 0 in the script's directory. The next time I run the script, it generates incorrect data because of this file. I know I can easily insert a... (1 Reply)
Discussion started by: reid
1 Replies
6. Shell Programming and Scripting
Hi,
I am trying to create a lock file with the following code but for some reason after file is created it has
wrong name "PASP?.lock??"
Please let us know how to get rid of these '??' from file name and from where they are coming?
#!/bin/ksh... (6 Replies)
Discussion started by: sandy162
6 Replies
7. Shell Programming and Scripting
I am new to Linux. Using latest version of Ubuntu.
I want to make a script that creates a 1GB file filled with zeros using dd and then formats the file as vfat with a label of "MYFILE".
If anyone can help me it would be appreciated. (9 Replies)
Discussion started by: paviter619
9 Replies
8. Red Hat
Hi,
I have created a test script like this :
# cat script1.sh
DAY=$(date +%d)
MONTH=$(date +%b)
YEAR=$(date +%Y)
BC01="Blast_BC01"
BC15="Blast_BC15"
DIR1="$MONTH$YEAR_$BC01"
DIR2="$MONTH$YEAR_$BC07"
DIR3="$MONTH$YEAR_$BC15"
if ;then
mkdir -p "$YEAR/$DIR3"
fi
#
When I... (5 Replies)
Discussion started by: anaigini45
5 Replies
9. Shell Programming and Scripting
I am new to Linux. Using latest version of Ubuntu.
I want to make a script that creates a 1GB file filled with zeros using dd and then formats the file as vfat with a label of "MYFILE".
If anyone can help me it would be appreciated. (1 Reply)
Discussion started by: amandasaza08
1 Replies
LEARN ABOUT OSX
mail::spf::mod::redirect
Mail::SPF::Mod::Redirect(3) User Contributed Perl Documentation Mail::SPF::Mod::Redirect(3)
NAME
Mail::SPF::Mod::Redirect - SPF record "redirect" modifier class
DESCRIPTION
An object of class Mail::SPF::Mod::Redirect represents an SPF record modifier of type "redirect".
Constructors
The following constructors are provided:
new(%options): returns Mail::SPF::Mod::Redirect
Creates a new SPF record "redirect" modifier object.
%options is a list of key/value pairs representing any of the following options:
domain_spec
See "new" in Mail::SPF::Mod.
new_from_string($text, %options): returns Mail::SPF::Mod::Redirect; throws Mail::SPF::ENothingToParse, Mail::SPF::EInvalidMod
Creates a new SPF record "redirect" modifier object by parsing the string and any options given.
Class methods
The following class methods are provided:
name: returns string
Returns 'redirect'.
name_pattern: returns Regexp
Returns a regular expression that matches a modifier name of 'redirect'.
precedence: returns real
Returns a precedence value of 0.8. See "precedence" in Mail::SPF::Mod.
Instance methods
The following instance methods are provided:
params
See "params" in Mail::SPF::Mod.
domain_spec: returns Mail::SPF::MacroString
Returns the "domain-spec" parameter of the modifier.
process($server, $request, $result): throws Mail::SPF::Result
If no mechanism matched during the evaluation of the current SPF record, performs a recursive SPF check using the given SPF server and
request objects and substituting the modifier's target domain name for the request's authority domain. The result of the recursive SPF
check is then thrown as the result of the current record's evaluation. However, if the target domain has no acceptable SPF record, a
"permerror" result is thrown. See RFC 4408, 6.1, for details.
See Mail::SPF::Mod for other supported instance methods.
SEE ALSO
Mail::SPF, Mail::SPF::Mod, Mail::SPF::Term, Mail::SPF::Record
<http://tools.ietf.org/html/rfc4408>
For availability, support, and license information, see the README file included with Mail::SPF.
AUTHORS
Julian Mehnle <julian@mehnle.net>, Shevek <cpan@anarres.org>
perl v5.16.2 2013-08-25 Mail::SPF::Mod::Redirect(3)