I need to write a make script to install a C module in a UNIX
environment.It should install the sources, build the libraries and
install them and also install the info pages on the system.
Can this script be general enough to also install on
windows, windows dll, windows help file's etc. Any... (3 Replies)
Hello,
I'm a noob when comes to make files....
My intentions for the use of my make file are not that of a usual compilation, etc.
It is simply to copy some files from a RCS controlled area to a public area which has read rights only for a web page.
My dilemma comes in the form of sub... (0 Replies)
i am having following DML file i want to extract only highlighted area using sed or awk oneliner..
i wrote the following sed command for this ..
it works fine but its too complex i guess.. can any one help me out to make it simpler..
thanks in advance..
vidya.. (2 Replies)
Hi All,
I have a script which throws the output if condition matches. I run the cmd :
# ldf
Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c1t0d0s0 1984564 1375019 550009 72% /
/dev/dsk/c1t0d0s3 5040814 2628410 2361996 53% /usr... (4 Replies)
Good morning. I am searching for "how-to"'s for some particular questions:
1. How to write a script in HP-UX 11.
2. How to schedule a script.
3. How to "call" scripts from the original script.
4. How to su to another user from within a script.
This is the basics of what the... (15 Replies)
Hi,
I have an ascii file with recurring lines (the file is 36mb so lots of lines) which look like this:
-2.5 -66.324-68.138 935.2 1.953 -0.664 272.617 73.684 -2.428 269.998 0.000
Every 14 lines there is a blank line.
I would like to, for each non-blank line,... (2 Replies)
I am trying to do a make on below and have a question:
http://www.datsi.fi.upm.es/~frosal/sources/shc-3.8.7.tgz
I am running Solaris 10 on x86.
I have untarred the files above.
I have gcc and gmake in /usr/sfw/bin
BUT when I do >gmake in the directory with above files, it does not... (4 Replies)
Hello all!
This is my first post and I'm very new to programming. I would like help creating a simple perl or bash script that I will be using in my work as a junior bioinformatician.
Essentially, I would like to take a tab-delimted or .csv text with 3 columns and write them to a "3D" matrix:
... (16 Replies)
Hi team,
I have two select statements and need to run them using SYSDBA user
select * from temp_temp_seg_usage;
select segment_name, tablespace_name, bytes/ (1024*1024) UsedMb from
dba_segments where segment_name='TEMP_TEMP_SEG_USAGE';
Need to run this using a shell script say named... (1 Reply)
if ];then
echo "ifconfig has output,and the output is "
ifconfig -a
fi
this would run twice for "ifconfig -a" (3 Replies)
Discussion started by: yanglei_fage
3 Replies
LEARN ABOUT PHP
fbsql_fetch_array
FBSQL_FETCH_ARRAY(3) 1 FBSQL_FETCH_ARRAY(3)fbsql_fetch_array - Fetch a result row as an associative array, a numeric array, or bothSYNOPSIS
array fbsql_fetch_array (resource $result, [int $result_type])
DESCRIPTION fbsql_fetch_array(3) is a combination of fbsql_fetch_row(3) and fbsql_fetch_assoc(3).
An important thing to note is that using fbsql_fetch_array(3) is NOT significantly slower than using fbsql_fetch_row(3), while it provides
a significant added value.
PARAMETERS
o $
result -A result identifier returned by fbsql_query(3) or fbsql_db_query(3).
o $result_type
- A constant and can take the following values: FBSQL_ASSOC, FBSQL_NUM, or FBSQL_BOTH. When using FBSQL_BOTH, in addition to
storing the data in the numeric indices of the result array, it also stores the data in associative indices, using the field names
as keys.
RETURN VALUES
Returns an array that corresponds to the fetched row, or FALSE if there are no more rows.
If two or more columns of the result have the same field names, the last column will take precedence. To access the other column(s) of the
same name, you must the numeric index of the column or make an alias for the column.
select t1.f1 as foo t2.f1 as bar from t1, t2
EXAMPLES
Example #1
fbsql_fetch_array(3) example
<?php
fbsql_connect($host, $user, $password);
$result = fbsql_db_query("database", "select user_id, fullname from table");
while ($row = fbsql_fetch_array($result)) {
echo "user_id: " . $row["user_id"] . "<br />
";
echo "user_id: " . $row[0] . "<br />
";
echo "fullname: " . $row["fullname"] . "<br />
";
echo "fullname: " . $row[1] . "<br />
";
}
fbsql_free_result($result);
?>
SEE ALSO fbsql_fetch_row(3), fbsql_fetch_assoc(3), fbsql_fetch_object(3).
PHP Documentation Group FBSQL_FETCH_ARRAY(3)