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.
|
|---|
| 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 | |
by bv (Friar) on Sep 04, 2009 at 20:37 UTC | |
by Anonymous Monk on Sep 07, 2009 at 14:54 UTC | |
by bv (Friar) on Sep 08, 2009 at 13:53 UTC | |
by bv (Friar) on Sep 07, 2009 at 17:38 UTC | |
by 45north (Initiate) on Sep 07, 2009 at 15:02 UTC |