I am using gdb to examine a core file but the output contains only the method addresses in hex.
Is there anyway to translate these addresses to a human-readable form? :confused: (0 Replies)
I need write a script to trace filesystem size change, such as /home will increase some size and then release some space. I don't know when increase happen. I want to get the size before increase and the size after release. How to write this script? (1 Reply)
I have a list of directories looking something like;
/usr/local/1/in
/usr/local/1/out
/usr/local/1/archive
/usr/local/2/in
/usr/local/2/out
/usr/local/2/archive
/usr/local/3/in
/usr/local/3/out
/usr/local/3/archive
Is there a way I can filter the out and archive directories so I... (5 Replies)
I'm working on writing a shell script that logs out whenever I have a firefox process running during certain times of the day (1 am - 8 am). I'll put it in crontab when it runs properly unless someone knows of a different and better way to do this. Here it is so far.
if ps ax | grep... (4 Replies)
hallow all i have question about awk i want indexing last key (in BOLD number)
ex: input.txt
1
252468812
52468812
1281268819
1252468812
1252468923
468812
1252468812
so output will like this
output text
1:252468812
2:52468812
4:1252468812
6:468812
7:1252468812
output get... (8 Replies)
Hi,
I am looking for an awk script which should help me to meet the following requirement:
File1 has records in following format
INF: FAILEd RECORD AB1234
INF: FAILEd RECORD PQ1145
INF: FAILEd RECORD AB3215
INF: FAILEd RECORD AB6114
............................ (2 Replies)
Hi,
I am an oracle DBA pretty new to unix. We had one of the filesystems full and a colleague cleared some stuffs to create more space. I just checked now and found there is now more space available. How do i find exactly what he cleared? We have oracle database installed and its a RAC... (4 Replies)
I will initiate a process from Server1 and the flow is as follow
Server1 --> Web server --> Application server --> DB Server
Note all seperate unix servers.
Now I need to put a trace for that process to track the timings from each server.
Like the below trace should be there:
... (5 Replies)
Discussion started by: saraperu
5 Replies
LEARN ABOUT DEBIAN
erubis
ERUBIS(1) User Commands ERUBIS(1)NAME
erubis - eRuby style template engine for multiple languages
SYNOPSIS
erubis [..options..] [file ...]
DESCRIPTION
Embedded templating engine for multiple languages. Erubis will take a template file as input and output code to convey that data in the
language specified. The following output languages are supported:
* Ruby
* PHP
* C
* Java
* Scheme
* Perl
* JavaScript
OPTIONS -h, --help
help
-v version
-x show converted code
-X show converted code, only ruby code and no text part
-N numbering: add line numbers (for '-x/-X')
-U unique: compress empty lines to a line (for '-x/-X')
-C compact: remove empty lines (for '-x/-X')
-b body only: no preamble nor postamble (for '-x/-X')
-z syntax checking
-e escape (equal to '--E Escape')
-p pattern
embedded pattern (default '<% %>')
-l lang
convert but no execute (ruby/php/c/java/scheme/perl/js)
-E e1,e2,...
enhancer names (Escape, PercentLine, BiPattern, ...)
-I path
library include path
-K kanji
kanji code (euc/sjis/utf8) (default none)
-c context
context data string (yaml inline style or ruby code)
-f datafile
context data file ('*.yaml', '*.yml', or '*.rb')
-T don't expand tab characters in YAML file
-S convert mapping key from string to symbol in YAML file
-B invoke 'result(binding)' instead of 'evaluate(context)'
--pi=name
parse '<?name ... ?>' instead of '<% ... %>'
supported properties:
* (common)
--escapefunc=nil
: escape function name
--pattern="<% %>"
: embed pattern
--trim=true
: trim spaces around <% ... %>
--preamble=nil
: preamble (no preamble when false)
--postamble=nil
: postamble (no postamble when false)
--escape=nil
: escape expression or not in default
* (basic) * (pi)
--pi="rb"
: PI (Processing Instrunctions) name
--embchar="@"
: char for embedded expression pattern('@{...}@')
* ruby * php * c
--indent=""
: indent spaces (ex. ' ')
--out="stdout"
: output file pointer name
* java
--indent=""
: indent spaces (ex. ' ')
--buf="_buf"
: output buffer name
--bufclass="StringBuffer" : output buffer class (ex. 'StringBuilder')
* scheme
--func="_add"
: function name (ex. 'display')
* perl
--func="print"
: function name
* javascript
--docwrite=true
: use 'document.write()' when true
EXAMPLES
Run 'erubis -l php example.ephp' to convert the embedded document to php code.
example.ephp:
<?xml version="1.0"?>
<html>
<body>
<p>Hello <%= $user %>!</p>
<table>
<tbody>
<% $i = 0; %>
<% foreach ($list as $item) { %>
<% $i++; %>
<tr bgcolor="<%= $i % 2 == 0 ? '#FFCCCC' : '#CCCCFF' %>">
<td><%= $i %></td>
<td><%== $item %></td>
</tr>
<% } %>
</tbody>
</table>
</body>
</html>
SEE ALSO
http://rubyforge.org/projects/erubis/
erubis 2.6.2 January 2009 ERUBIS(1)