My requirement is i have a script A.sh .When a person A runs the script A.sh it should get locked and person B should not run the script.
i followed the below code
The above is working fine in normal conditions.
But when person A runs the query and press Ctrl+C intermitently the code stops running.
When person B or even person A tries to execute the A.sh again after sometime it says it has been accessed by the user and not able to execute.
Please help me on this.
how can I lock my keyboard while I'm away from the computer without using lock command. What other commands gives me the option to lock keyboard device?
thanks (7 Replies)
Hi,
My requirement is to service a process and below is the script which i wrote for that and works fine, I have kept it in a crontab and running this everyminute, how do I lock this if its already running and i dont want to open if its running and not completed yet.
The crontab need to run... (4 Replies)
Hello all,
If anyone has time, I have a few questions:
How do I do the following in Linux. We are using Red Hat and Oracle Enterprise Linux, which is based on Red Hat too.
1. How to lock the account after a few (like 3) invalid password attempts?
2. How do you lock a screen after 30... (1 Reply)
I am trying to create a script that will take a very large, tab delimited file and then lock accounts.
File headers look like this
id desc server pass sudo lock
test Test user server01 67 no no
"Test user" is under the desc column
Basically if pass column is greater... (5 Replies)
Dear all,
I have created a perl script with pattern matching, and which loads the data from the Input data file into the Oracle table, and after the load is successful, it deletes the file.
Now i want to do some enhancements to the script;
1) E-mail the user with the log file and the... (1 Reply)
Hi,
I have a ksh shell script that accesses databases to drop and create tables and the script also creates text files.
This shell script is accessed thru a java application that i would like to turn multi-user, but the only way that i can do that is if I can figure out a way to lock the shell... (2 Replies)
Hi all,
I have to test some user priviliges. The goal is to be sure that an unauthorized user can't restart some modules (ssh, mysql etc...).
I'm trying to automate it with a shell script but in same cases I got the syslog broadcast message.
Is there any way to simply get a return code... (3 Replies)
Hi All,
newbie here, is it possible to lock my second script? because my 1st script is still running.
Ex.
1st run : 1st script.sh --> running.....
2nd run : 1st script.sh --> lock because the script is still running..
i don't have any idea how to do it.
Please advise,
Thanks,... (1 Reply)
Hi All,
Seeking for your assistance on how to lock the script if it's running? meaning anybody can't run my script while it's running.
Please advise,
Thanks, (8 Replies)
Hi,
I am new to perl and have a script to which i want to ensure that no matter how many ever times i execute the script it should execute only once per day. Cronjob is not a safe method as I want to built in capability inside the script. (1 Reply)
Discussion started by: ctrld
1 Replies
LEARN ABOUT PHP
cubrid_error
CUBRID_ERROR(3) 1 CUBRID_ERROR(3)cubrid_error - Get the error messageSYNOPSIS
string cubrid_error ([resource $connection])
DESCRIPTION
The cubrid_error(3) function is used to get the error message that occurred during the use of CUBRID API. Usually, it gets error message
when API returns false as its return value.
PARAMETERS
o $connection
-The CUBRID connection.
RETURN VALUES
Error message that occurred.
EXAMPLES
Example #1
cubrid_error(3) example
<?php
$con = cubrid_connect('localhost', 33000, 'demodb', 'dba', '');
$req = cubrid_execute($con, "select id, name from person");
if ($req) {
while (list ($id, $name) = cubrid_fetch($req))
echo $id, $name;
} else {
echo "Error Code: ", cubrid_errno($con);
echo "Error Message: ", cubrid_error($con);
}
?>
The above example will output:
Error Code: -493 Error Message: Syntax: Unknown class "person". select id, [name] from person
SEE ALSO cubrid_errno(3), cubrid_error_code(3), cubrid_error_msg(3).
PHP Documentation Group CUBRID_ERROR(3)