My supervisor keep getting "stdin not tty" or something like that when he pipe or redirect input into a program. Others
don't seem to get this message. Is there some way I can help him to fix or turn this off?
Thx in advance (1 Reply)
can you redirect STDIN with command arguments?
I have tried this approach:
# ./script -option <argument1> <argument2> 0<$2
# $2: ambiguous redirect
Is this possible? (4 Replies)
For windows was pretty simple to redirect the std in a and out of a
child process for "cmd.exe " command prompt terminal to a socket using connected pipes passed to a new process in the STARTUPINFO structure.
BOOL b = ::CreatePipe((LPHANDLE)h_stdInRead,(LPHANDLE)hsdtInWriteTmp, &SecAttrib,... (1 Reply)
Hi:
I have the next script on ksh
#!/usr/bin/ksh
cd $FUENTES
qdesign <<-!
\$/opt/cognos/ph843e/bin/qtp <<-!
\$/opt/cognos/ph843e/bin/quiz <<-!
!
!
!
This script is very simple, i want to nest three process quiz into qtp, and this into qdesign.
When I run it , i receive the... (5 Replies)
Hi:
I have the next script on ksh
#!/usr/bin/ksh
cd $FUENTES
qdesign <<-!
\$/opt/cognos/ph843e/bin/qtp <<-!
\$/opt/cognos/ph843e/bin/quiz <<-!
!
!
!
This script is very simple, i want to nest three process quiz into qtp, and this into qdesign.
When I run it , i receive the next... (2 Replies)
I am unable to use STDIn redirection with < (commands)
When I do the following, both approaches work and give the same results:
1.
$ printf "aaa\nbbb\n" > file1
$ printf "111\n222\n" > file2
$ cat file1 file2
aaa
bbb
111
2222.
$ cat <(printf "aaa\nbbb\n") <(printf "111\n222\n")
aaa... (8 Replies)
Hi,
i know how to
a) redirect stdout and stderr to one file,
b) and write to two files concurrently with same output using tee command
Now, i want to do both the above together.
I have a script and it should write both stdout and stderr in one file and also write the same content to... (8 Replies)
Hi,
I am working on a project where I have to generate and execute nasm code on-the-fly. I generate the code in a file program.asm and then execute it.This output is to stdout which i redirect to an output file which i read back to compare results:
system("nasm -f elf program.asm >... (5 Replies)
Hi
Im trying to do the following:
grep -H Date: out/* | sed 's/':'/ /' | awk '$4 ~ /^/ {print $1}' | while read VARIABLE; do
awk '{print $1,$3,$2}' $VARIABLE | sed (take stdin and replace a string in $VARIABLE)
done
What this is basically doing is finding all files with Date: in... (11 Replies)
Hi there,
I need to execute a command in the bash. The program prints some standard (output and) error and then wants the user to choose one of several options and type the according input. I am trying to solve this issue in a bash script but also running into some circular dependency. How can I... (7 Replies)
Discussion started by: fredestet
7 Replies
LEARN ABOUT MOJAVE
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.18.2 2017-10-06 Mail::SPF::Mod::Redirect(3)