in reply to system function adds spurious characters to log file

According to my man page for console_codes, it's trying to set your window title to saturnn2 and ringing the system bell. Probably your shell is being a little too "full featured." You could try to force a particular shell to handle it, something like:

system ('/bin/sh', '-c', "tar -cvf - $tar_star_list.* | gzip > $complete_zip_spec &");

Note that by using system in list context, you avoid using whatever shell Perl usually uses. Then you can find the right set of arguments to your shell of choice that will produce the desired output.

Of course, you could do all the forking and piping and redirection in pure Perl, but that may be more coding than you want to get into.

print pack("A25",pack("V*",map{1919242272+$_}(34481450,-49737472,6228,0,-285028276,6979,-1380265972)))

Replies are listed 'Best First'.
Re^2: system function adds spurious characters to log file
by 45north (Initiate) on Sep 04, 2009 at 20:31 UTC
    bv you are a genius! I was setting the window title on saturnn2 with
    #perl -le'print "\e]0;$ENV{HOST}\7"'
    I commented it out and it fixed the problem! Thanks How can I get the set the title only for interactive sessions and not for other processes?

      Use the -t test for STDIN

      perl -le'print "\e]0;$ENV{HOST}\7" if -t'
      print pack("A25",pack("V*",map{1919242272+$_}(34481450,-49737472,6228,0,-285028276,6979,-1380265972)))
        em bv I justed tested the if -t and it doesn't work, I got the messages in my log file here is the code a I used with a comment added
        # perl -le'print "\e]0;$ENV{HOST}\7" if -t'