Hi all
I've just did that, and it worked:
[silvio@tico perl]$ cat saida
cat: saida: No such file or directory
[silvio@tico perl]$ perl -e '$x = `pwd>saida`; print "[$x]\n";'
[]
[silvio@tico perl]$ cat saida
/home/silvio/perl
It seems the backtick operator calls the shell, otherwise
it wouldn't be able to redirect output to file saida.
1) What shell does it call?
2) What about calling the Perl intrerpreter, not in a shell,
but somewhere else on the system, like being the program
to be executed as soon as a user log in, for example, the
"shell entry" in /etc/passwd? (we have no shell running till
that moment)
Thanks in advance
Silvio