ok the above code works.. now the next thing.
i am taking each element of this array n checking if that file exist in a directory or not..
in the above code sample, my requirement was to take each element of the array and check whether that file exists in a directory or not. and $NO_FILES array will contain the number of files of type i.e.
Hi,
I have two shell variables $t1 and $t2 which I need to pass to a function in a shell script. The function will do some computation with those two variables and echo the resultant. But I do not know how to pass teh arguments.
The function written is
f1()
{......
........
}
What should... (3 Replies)
Hi,
I have an output generated from a shell script like;
0x41,0xF2,0x59,0xDD,0x86,0xD3,0xEF,0x61,0xF2
How can I pass this value to the C function, as below;
int main(int argc, char *argv) {
unsigned char hellopdu={above value};
}
Regards
Elthox (1 Reply)
Hi,
In the below C code , i want to pass the array to a unix shel script.
my script should called as ex myscript 1,2,3
#include <stdio.h>
int main()
{
int a={1,2,3};
}
Thanks,
Arun (1 Reply)
Hi Folks,
The subject is my question:
Can we pass an array of strings from a Perl Program to a Shell Script?
Please provide some sample code.
Thanks
---------- Post updated at 11:52 PM ---------- Previous update was at 11:43 PM ----------
I got it.
Its here:... (0 Replies)
Hello,
Can anyone guide me tin passing parameters into user defined function of shell script (KSH).
Here is my code,
InsertRecord()
{
DB_TBL=$(sqlplus $USERID/$PASSWORD@$DATABASE << EOF
set head off
set feed off
set serveroutput on
INSERT INTO TBL1 ( OLD_VAL,
NEW_VAL,
... (7 Replies)
Hi All
I have multiple arrays like below.
set -A val1 1 2 4 5
set -A val2 a b c d
.
.
.
Now i would like to pass the individual arrays one by one to a function and display/ do some action.
Note : I am using ksh
Can you please advise any solution...
Thanks in advance. (7 Replies)
Dear Friends,
Please help me on this
my script name is send.csh
In this i have written the statement like this
set args = ( city state country price )
I want to pass this array to another c shell called receiver.csh. and i want to use it in this c shell
or
how to pass to... (2 Replies)
I want to make a config file which contain all the paths.
i want to read the config file line by line and pass as an argument on my below function.
Replace all the path with reading config path line by line and pass in respective functions.
how can i achieve that?
Kindly guide.
... (6 Replies)
I'm able to read & print an array in varaible called "filelist"
I need to pass this array variable to a function called verify() and then read and loop through the passed array inside the function.
Unfortunately it does not print the entire array from inside the funstion's loop.
#/bin/ksh... (5 Replies)
Discussion started by: mohtashims
5 Replies
LEARN ABOUT PHP
cubrid_new_glo
CUBRID_NEW_GLO(3) 1 CUBRID_NEW_GLO(3)cubrid_new_glo - Create a glo instanceSYNOPSIS
string cubrid_new_glo (resource $conn_identifier, string $class_name, string $file_name)
DESCRIPTION
The cubrid_new_glo(3) function is used to create a glo instance in the requested class (glo class). The glo created is a LO type, and is
stored in the $file_name file.
PARAMETERS
o $conn_identifier
-Connection identifier.
o $class_name
-Name of the class that you want to create a glo in.
o $file_name
-The file name that you want to save in the newly created glo.
RETURN VALUES
Oid of the instance created, when process is successful.
FALSE, when process is unsuccessful.
EXAMPLES
Example #1
cubrid_new_glo(3) example
<?php
$oid = cubrid_new_glo ($con, "glo", "input.jpg");
if ($oid){
// the type of column "image" is "object"
$req = cubrid_execute ($con, "insert into person(image) values($oid)");
if ($req) {
echo "image inserted successfully";
cubrid_close_request ($req);
cubrid_commit($con);
}
}
?>
NOTES
Note
For backward compatibility, the following deprecated alias may be used: cubrid_new_glo(3)
Note
This function is removed from CUBRID 3.1.
SEE ALSO cubrid_save_to_glo(3), cubrid_load_from_glo(3), cubrid_send_glo(3).
PHP Documentation Group CUBRID_NEW_GLO(3)