Linux / UNIX Tech Support Forum
This is a discussion on monitoring http://bash.cyberciti.biz/monitoring/get-system-information-in-html-format within the Shell scripting forums, part of the Development/Scripting category; Hi i try to use monitoring scripts that scripts is title... i got some errors Code: rfs= "$($_CMD df -hT ...
|
|||||||
| Shell scripting You can discuss the shell scripting, request shell scripts and scripting techniques |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi
i try to use monitoring scripts that scripts is title... i got some errors Code:
rfs="$($_CMD df -hT | grep -vE "^Filesystem|shm" \
| awk 'BEGIN{print "
<ul>"}{w=sprintf("%d",$6);print "
<li>" $7 \
" " $6 \
"(" $2 ")<BR> <img src=\"indicator.gif\" height=\"4\" width=\"" w "\"> \
<BR><img src=\"graph.gif\"> \
<BR>" $4"/"$3 "</li>
"}END{ print "</ul>
"}')"
errors is awk: BEGIN{print " awk: ^ unterminated string can some help me what is wrong ? |
| Sponsored Links | ||
|
|
|
||||
|
Hmm,
I tested this and came up with one of the same errors that a commenter made on the Blog Entry. I will ask the site admin for assistance. Code:
c-76-19-15-133:test jasonralph$ ./109.sh > /Users/jasonralph/Desktop/test/jason.html ./109.sh: line 110: syntax error near unexpected token `newline' ./109.sh: line 110: ` echo '</td>' c-76-19-15-133:test jasonralph$ |
|
||||
|
Okay, I've flushed cache and deleted row from database. Download zip file again. It should work now.
__________________
Vivek Gite Linux Evangelist Last edited by nixcraft; 27-11-2009 at 03:48 PM. |
|
||||
|
Sweet,
Thanks as always, this is a really neat script that I learned from. @pikkuveli, How are you making out with the new zip file? Regards, Jaysunn |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Shell Script To Format File Output in HTML Format | zerbitated | Shell scripting | 1 | 22-07-2009 01:31 AM |
| Internet Monitoring | myfoot | Networking, Firewalls and Security | 3 | 06-06-2009 02:37 AM |
| apcupsd (UPS monitoring) | maniannam | CentOS / RHEL / Fedora | 0 | 31-12-2008 04:23 PM |
| Network Monitoring | puppen | Linux software | 2 | 10-05-2006 11:01 PM |
| Monitoring a NIC | nathan86 | Linux software | 2 | 10-03-2005 03:41 PM |