in reply to Re^3: Some system command not working as required after File::Tee
in thread Some system command not working as required after File::Tee

may be you can redirect less output stdout and stderr to file?
system('less text 1>>file 2>>file');
  • Comment on Re^4: Some system command not working as required after File::Tee