Skip to main content
deleted 1 character in body; edited tags
Source Link
fpmurphy
  • 4.7k
  • 3
  • 25
  • 26

Hello I am running a bash shell script to send to html page but the html page keeps putting this "[7l" character in with my shell command output from the bash script.

echo "<pre>"                                                 >> stats.html
echo "####### DISK Usage  ########" >> stats.html
/usr/bin/dstat --disk-util --disk --top-bio-adv 1 1   >> stats.html
echo "</pre>"                                                 >> stats.html

And the html page has this in it

####### DISK Usage  ########
[7lsda- -dsk/total- ----most-expensive-block-i/o-process----
util| read  writ|process              pid  read write cpu
0.04|  16k 8087B|systemd              1    8111B6247B0.0%

Hello I am running a bash shell script to send to html page but the html page keeps putting this "[7l" character in with my shell command output from the bash script.

echo "<pre>"                                                 >> stats.html
echo "####### DISK Usage  ########" >> stats.html
/usr/bin/dstat --disk-util --disk --top-bio-adv 1 1   >> stats.html
echo "</pre>"                                                 >> stats.html

And the html page has this in it

####### DISK Usage  ########
[7lsda- -dsk/total- ----most-expensive-block-i/o-process----
util| read  writ|process              pid  read write cpu
0.04|  16k 8087B|systemd              1    8111B6247B0.0%

Hello I am running a bash shell script to send to html page but the html page keeps putting this "[7l" character in with my shell command output from the bash script.

echo "<pre>"                                                 >> stats.html
echo "####### DISK Usage  ########" >> stats.html
/usr/bin/dstat --disk-util --disk --top-bio-adv 1 1   >> stats.html
echo "</pre>"                                                 >> stats.html

And the html page has this in it

####### DISK Usage  ########
[7lsda- -dsk/total- ----most-expensive-block-i/o-process----
util| read  writ|process              pid  read write cpu
0.04|  16k 8087B|systemd              1    8111B6247B0.0%
Source Link

Bash Script to HTML has Annoying Character

Hello I am running a bash shell script to send to html page but the html page keeps putting this "[7l" character in with my shell command output from the bash script.

echo "<pre>"                                                 >> stats.html
echo "####### DISK Usage  ########" >> stats.html
/usr/bin/dstat --disk-util --disk --top-bio-adv 1 1   >> stats.html
echo "</pre>"                                                 >> stats.html

And the html page has this in it

####### DISK Usage  ########
[7lsda- -dsk/total- ----most-expensive-block-i/o-process----
util| read  writ|process              pid  read write cpu
0.04|  16k 8087B|systemd              1    8111B6247B0.0%