Hi Guys,
Happy New Year to you all!
I have a requirement to read an embedded new-line using KSH's read builtin.
Here is what I am trying to do:
run_sql "select guestid, address, email from guest" | while read id addr email
do
## Biz logic goes here
done
I can take care of any... (6 Replies)
Hello All,
i am a newbie and need some help when reading a csv file in a bourne shell script. I want to read 10 lines, then wait for a minute and then do a reading of another 10 lines and so on in the same way. I want to do this till the end of file.
Any inputs are appreciated
... (3 Replies)
Hi
I am new to writing script and want to use a Bash Piped while-read and read from user input.
if something happens on server.log then do while loop or if something happend on user input then do while loop.
Pseudocode something like:
tail -n 3 -f server.log | while read serverline || read... (8 Replies)
Hi, currently I have a script with conditional checking. But it's not flexible to use, because i must create a more conditional script if there are more keyword (see table) required. Question is: Can I create a more smarter script that will be more flexible?
I appreciate any help anyone can give... (8 Replies)
Hi.
How can I create a history function? (By "read" command or so)
&
How can I configure a read command so that the arrow keys are not displayed so funny? (^[[A)
Thanks in advance. (4 Replies)
Hello,
I am trying to inject data extracted via php-json to sql database but unable to run it in loop mode. It is working just for one data, then stops.
If it's necessary, I can share the complete php file.
test.php
<?php
include_once 'imdb.class.php';
//mysql config.
$servername =... (4 Replies)
.... Solved....
..
..
Hello,
I've read couples of similar threads to my question and I strongly believe that I am doing something wrong. What I'm trying to do is to process data with php. It reads data from shell script.
Everything goes well but at the end it does not print what it reads... (0 Replies)
Discussion started by: baris35
0 Replies
LEARN ABOUT PHP
main
MAIN(3) 1 MAIN(3)main - Dummy formain(3)
There is no function named main(3) except in the PHP source. In PHP 4.3.0, a new type of error handling in the PHP source
(php_error_docref) was introduced. One feature is to provide links to a manual page in PHP error messages when the PHP directives
html_errors (on by default) and docref_root (on by default until PHP 4.3.2) are set.
Sometimes error messages refer to a manual page for the function main(3) which is why this page exists. If you discover such a reference,
please file a bug report, indicating the PHP function caused the error that linked to main(3) and it will be fixed and properly documented.
Known errors that point to main(3)
+----------------+-----------------------------+
| Function name | |
| | |
| | No longer points here as of |
| | |
+----------------+-----------------------------+
| include(3) | |
| | |
| | 5.1.0 |
| | |
|include_once(3) | |
| | |
| | 5.1.0 |
| | |
| require(3) | |
| | |
| | 5.1.0 |
| | |
|require_once(3) | |
| | |
| | 5.1.0 |
| | |
+----------------+-----------------------------+
html_errors, display_errors.
PHP Documentation Group MAIN(3)