system uses sh on unix platforms (if the string to execute includes shell meta characters). Is >! an sh feature on your system? On mine, as best as I can tell, your code would be a misuse of the ! reserved word.
Use the bourne shell syntax for what you are trying to do, or specify your shell explicitely:
system('/bin/mysh', '-c', 'pwd >! tmp_1');
In reply to Re: Using the bang(!) in perl system commands
by ikegami
in thread Using the bang(!) in perl system commands
by kettle
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |