open(PIPE, "| ./unrar e $file"); print(PIPE, $passwd);
The problem is that the contents of $file are now subject to shell interpretation.
IPC::Open3 (core module) and IPC::Run (better interface) can avoid that problem.
In reply to Re: Simple (hopefully) shell/system() execution question
by ikegami
in thread Simple (hopefully) shell/system() execution question
by scotchfx
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |