Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Using PHP to view syslog in private web page Post 303036834 by Neo on Saturday 13th of July 2019 03:44:19 PM
Old 07-13-2019
You must write your own text processing function and post YOUR code.

Where is the the code YOU wrote that you are taking about?
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Web page hosting

I built my website based on Dreamweaver, on Windows platform. My server uses Unix, and the page doesn't look too good. Is there any way to solve this problem without too much of a headache? (1 Reply)
Discussion started by: PCL
1 Replies

2. UNIX for Dummies Questions & Answers

view page command?

Hi All, When I run a command on any shell, many times the output is longer than the screen can hold, so I only can see parts of the output. Is there a command that will show me page by page the results of each command? Thanks, Jared (3 Replies)
Discussion started by: JaredsNew
3 Replies

3. Shell Programming and Scripting

View an html page inside zenity

Hi! :) Inside a bash script, I have an html page: "example.html" I need: - read "example.html. - print and view the result for example with dillo (or another light browser) inside zenity with clickable images and links. Some stuff like: zenity --html-info --filename=example.html Is... (0 Replies)
Discussion started by: aspire
0 Replies

4. Web Development

web interface to view,copy,select files

Hi. I have been working on an email backup solution. I need some kind of web admin interface to view , copy & select files in order to restore them. Can someone point me to the right direction? Or do i need to code it from scratch. Something that need a little modification to work is OK. ... (3 Replies)
Discussion started by: coolatt
3 Replies

5. Programming

Need a help in automating the http authenticated web page - via PHP scripting

Hi all, Need a help in PHP scripting. Am automating a process in web page. The process is 1. i have to open that web page using the user credentials (Username and password). 2. select a drop down and click submit button. 3. Then check for the status of the page. Please help me how to... (1 Reply)
Discussion started by: vidhyaS
1 Replies

6. AIX

View OS version within HMC web GUI?

Hello there Im wondering is there any way to see lpar OS info (like 5.3 or 6.1) in HMC web GUI? Because in some situation, the lpar is inactive, the only way to check OS version is to activate, this process takes time :) Tks! (8 Replies)
Discussion started by: bsddaemon
8 Replies

7. Shell Programming and Scripting

Web page with picture, text, php function

Hello. I'm trying to create a web page which the presentation is as follows: 1 °) at the top of page an image 2 °) below the text 3 °) to complete a php function that returns information. I tried different things but none work. Script 1: <!DOCTYPE html> <html> <head> <style> div { ... (5 Replies)
Discussion started by: jcdole
5 Replies

8. UNIX for Dummies Questions & Answers

What is a page from Linux point of view ?

Versions : RHEL 6.xx /OL 6.xx I am trying to understand what a page is in Linux? The concept should be same in Unix as well, I guess The below doc says "A page is a block of virtual memory. A typical block size on Linux operating system is 4KB " ... (4 Replies)
Discussion started by: kraljic
4 Replies
btparse::doc::bt_macros(3)					      btparse						btparse::doc::bt_macros(3)

NAME
bt_macros - accessing and manipulating the btparse macro table SYNOPSIS
void bt_add_macro_value (AST * assignment, btshort options); void bt_add_macro_text (char * macro, char * text, char * filename, int line); void bt_delete_macro (char * macro); void bt_delete_all_macros (void); int bt_macro_length (char *macro); char * bt_macro_text (char * macro, char * filename, int line); DESCRIPTION
btparse maintains a single table of all macros (abbreviations) encountered while parsing BibTeX entries. It updates this table whenever it encounters a "macro definition" (@string) entry, and refers to it whenever a macro is used in an entry and needs to be expanded. (Macros are not necessarily expanded on input, although this is the default. See bt_postprocess.) Macro definitions are only cleared when btparse's global cleanup function, "bt_cleanup()", is called. Thus, unless you explicitly call "bt_delete_macro()" or "bt_delete_all_macros()", macro definitions persist for as long as you use the library---usually, the lifetime of your process. FUNCTIONS
You can use the following functions to add macros, delete them, and query their values---thus interfering with btparse's normal operation on the fly. bt_add_macro_text () void bt_add_macro_text (char * macro, char * text, char * filename, int line); Defines a new macro, or redefines an old one. "macro" is the name of the macro, and "text" is the text it should expand to. "filename" and "line" are just used to generate any warnings about the macro definition; if they don't apply, specify "NULL" for "filename" and 0 for "line". The only such warning occurs when you redefine an old macro: its value is overridden, and "bt_add_macro_text()" issues a warning saying so. For instance, when parsing this macro definition entry: @string{fubar = "Fouled Up Beyond All Recognition"} the library (in particular, the post-processing code called after an entry is successfully parsed) will ultimately do this: bt_add_macro_text ("fubar", "Fouled Up Beyond All Recognition", filename, line); This in turn will cause the macro "fubar" to be expanded appropriately whenever the post-processing code sees it in any future entries. bt_add_macro_value () void bt_add_macro_value (AST * assignment, btshort options); This function is mainly for internal use by the library, but it's available to you if you ever find yourself with a little bit of AST representing a macro definition, and you want to set the macro yourself (rather than letting the library's post-processing code take care of it for you). "assignment" must be an AST node as returned by "bt_next_field()". Unlike most other btparse functions that take an "options" argument, "options" here tells how the value in "assignment" was post-processed. This is needed because macro values have to be processed in a special way to be valid in future expansions; if this one wasn't processed like that, "bt_add_macro_value()" will do it for you. If you don't know how the value was post-processed, just supply 0 for "options"---that's guaranteed to describe something different from "the right way" for macros, so the post-processing will be done correctly. The processing done to macro values is mainly to ensure that we can get away with storing just a string in the macro table: macros invoked by the macro are themselves expanded, and all sub-strings are concatenated. For instance, if btparse parses these entries: @string{and = " and "} @string{jim_n_bob = "James Smith" # and # "Bob Jones"} then the value stored for "jim_n_bob" should obviously be the string "James Smith and Bob Jones". To ensure this, btparse has to process the value of "and" differently from most BibTeX strings: in particular, whitespace is not collapsed before the string is stored. That way, the correct value, " and ", is interpolated into the value of "jim_n_bob". Thus, all macro values have sub-macros expanded and strings concatenated before they are stored, but whitespace is not collapsed until the macro is used in a regular entry. This function calls "bt_add_macro_text()", so the same proviso about redefining old macros applies---a warning will be issued, and the old value lost. bt_delete_macro () void bt_delete_macro (char * macro); Deletes a macro from the macro table. If "macro" isn't defined, takes no action. bt_delete_all_macros () void bt_delete_all_macros (void); Deletes all macros from the macro table. bt_macro_length () int bt_macro_length (char *macro); Returns the length of a macro's expansion text. If the macro is undefined, returns 0; no warning is issued. bt_macro_text () char * bt_macro_text (char * macro, char * filename, int line); Returns the expansion text of a macro. If the macro is not defined, issues a warning and returns "NULL". "filename" and "line" are used for generating this warning; if they don't apply (i.e. you're not expanding the macro as a result of finding it in some file), supply "NULL" for "filename" and 0 for "line". SEE ALSO
btparse AUTHOR
Greg Ward <gward@python.net> btparse, version 0.63 2012-05-12 btparse::doc::bt_macros(3)
All times are GMT -4. The time now is 08:45 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy