Hi everyone,
I have to maintenance an old script unix (#!bin/sh) that get files from remote host by ftp.
There is a configuration file that contains a list of IP; the script reads this file, one line by line, and per each IP execute these commands:
echo "verbose on" > ftprap.cmd
echo "prompt... (3 Replies)
how to connect to ftp server in passive mode?
ftp server.abc
and how can i see ftp settings, doesn't exist some ftpd.conf
there is some other file where i check the options and configurations of ftp server?
Thanks (3 Replies)
Hello,
I tried searching through lot of threads for a solution but couldn't fetch the exact solution, so I am creating a new thread.
I am trying to connect to a FTP server
1) using a simple FTP command, it gives the error :
534 Policy requires SSL.
Login failed.
2) using SFTP... (19 Replies)
Hello All,
I am trying to connect to ftp server and get the files. Also i need to rename the file in other ftp dir.
rename method is not allowing me to rename the file in other dir. When i tried copy command by using net::FTP:FILE then perl says it is not installed.
Can some body help me to... (2 Replies)
Hi,
I have two unix servers A and B. from A i am trying to use the ftp command to connect to B but I am getting the "ftp: connect: A remote host refused an attempted connect operation."
I checked the following things :
1.) Unix Server details for A and B after running the command uname -a... (3 Replies)
Hi
I'm trying to make script that will connect to FTP Server than find files that contain word HIGH in name and than export them to another server. Can anyone tell me if something like this is possible?
Thanks :) (7 Replies)
Hi All,
We have done new FTB setup.
I am not able to to connect to this new target server.
Here is the new setup to send files to the FTB :
- Login : FTB-TAN-DEV-SAP
- Protocol : SFTP
- Port : 54322
- Hostname : ftb-dev.apj.hp
- Env : DEV
- Target ID : 3225
I tried connecting to the... (5 Replies)
Hi All
I need to run a query on a remote database through a shell script. I have the query, I have the script ready. I have the details of the database server I need to connect to.
Now my problem here is , the server where I run the shell script is an FTP server.
->I do not have Oracle... (4 Replies)
Discussion started by: sparks
4 Replies
LEARN ABOUT PHP
cubrid_seq_put
CUBRID_SEQ_PUT(3) 1 CUBRID_SEQ_PUT(3)cubrid_seq_put - Update the element value of sequence type column using OIDSYNOPSIS
bool cubrid_seq_put (resource $conn_identifier, string $oid, string $attr_name, int $index, string $seq_element)
DESCRIPTION
The cubrid_seq_put(3) function is used to update the content of the requested element in a sequent type attribute using OID.
PARAMETERS
o $conn_identifier
-Connection identifier.
o $oid
-OID of the instance you want to work with.
o $attr_name
-Name of the attribute that you want to update an element.
o $index
-Index (1-based) of the element that you want to update.
o $seq_element
-New content that you want to use for the update.
RETURN VALUES
TRUE, when process is successful.
FALSE, when process is unsuccessful.
EXAMPLES
Example #1
cubrid_seq_put(3) example
<?php
$conn = cubrid_connect("localhost", 33000, "demodb", "dba");
@cubrid_execute($conn, "DROP TABLE foo");
cubrid_execute($conn, "CREATE TABLE foo(a int AUTO_INCREMENT, b set(int), c sequence(int), d char(10))");
cubrid_execute($conn, "INSERT INTO foo(a, b, c, d) VALUES(1, {1,2,3}, {11,22,33,333}, 'a')");
$req = cubrid_execute($conn, "SELECT * FROM foo", CUBRID_INCLUDE_OID);
cubrid_move_cursor($req, 1, CUBRID_CURSOR_FIRST);
$oid = cubrid_current_oid($req);
$attr = cubrid_col_get($conn, $oid, "c");
var_dump($attr);
cubrid_seq_put($conn, $oid, "c", 1, "111");
$attr = cubrid_col_get($conn, $oid, "c");
var_dump($attr);
cubrid_close_request($req);
cubrid_disconnect($conn);
?>
The above example will output:
array(4) {
[0]=>
string(2) "11"
[1]=>
string(2) "22"
[2]=>
string(2) "33"
[3]=>
string(3) "333"
}
array(4) {
[0]=>
string(3) "111"
[1]=>
string(2) "22"
[2]=>
string(2) "33"
[3]=>
string(3) "333"
}
SEE ALSO cubrid_seq_drop(3), cubrid_seq_insert(3).
PHP Documentation Group CUBRID_SEQ_PUT(3)